案例:javascript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
<script type="text/javascript">
4
function showEmptyCells()
5
{
6
document.getElementById('myTable').style.emptyCells="show";
7
}
8
</script>
9
</head>
10
<body>
11
12
<table border="1" id="myTable">
13
<tr>
14
<td>100</td>
15
<td>200</td>
16
</tr>
17
<tr>
18
<td>300</td>
19
<td></td>
20
</tr>
21
</table>
22
23
<input type="button" onclick="showEmptyCells()" value="Show empty cells">
24
25
</body>
26
</html>
27