代码编辑器:
x
1
<script>
2
function displayResult(){
3
document.getElementById("myHeader1").colSpan="2";
4
}
5
</script>
6
<table border="1">
7
<tr>
8
<th id="myHeader1">月份</th>
9
<th id="myHeader2">存款</th>
10
</tr>
11
<tr>
12
<td>January</td>
13
<td>$100.00</td>
14
</tr>
15
<tr>
16
<td>February</td>
17
<td>$10.00</td>
18
</tr>