当前位置: 首页 > 网络学院 > 客户端脚本教程 > HTML DOM > HTML DOM frame 属性
The frame property sets or returns which borders to render around the table.
frame属性可设置或返回表格周围的边框
tableObject.frame=void|above|below|hsides|vsides|lhs|rhs|box|border |
<html> <head> <script type="text/javascript"> function aboveFrames() { document.getElementById('myTable').frame="above" } function belowFrames() { document.getElementById('myTable').frame="below" } </script> </head> <body> <table id="myTable"> <tr> <td>100</td> <td>200</td> </tr> <tr> <td>300</td> <td>400</td> </tr> </table> <form> <input type="button" onclick="aboveFrames()" value="Show above frames"> <input type="button" onclick="belowFrames()" value="Show below frames"> </form> </body> </html> |
Specify frames of a table
指定表格的框架