W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<html> <head> <script type="text/javascript"> function showEmptyCells() { document.getElementById('myTable').style.emptyCells="show"; } </script> </head> <body> <table border="1" id="myTable"> <tr> <td>100</td> <td>200</td> </tr> <tr> <td>300</td> <td></td> </tr> </table> <input type="button" onclick="showEmptyCells()" value="Show empty cells"> </body> </html>