框架(frame)属性
table frame="box" 四周有线
table frame="above" 上线
table frame="below" 下线
table frame="hsides" 上下线
table frame="vsides" 左右线
本例演示如何使用 "frame" 属性来控制围绕表格的边框。
<html> <body> <p><b>注释:</b>frame 属性无法在 Internet Explorer 中正确地显示。</p> <p>Table with frame="box":</p> <table frame="box"> <tr> <th>100</th> <th>200</th> </tr> <tr> <td>300</td> <td>400</td> </tr> </table> <p>Table with frame="above":</p> <table frame="above"> <tr> <th>100</th> <th>200</th> </tr> <tr> <td>300</td> <td>400</td> </tr> </table> <p>Table with frame="below":</p> <table frame="below"> <tr> <th>100</th> <th>200</th> </tr> <tr> <td>300</td> <td>400</td> </tr> </table> <p>Table with frame="hsides":</p> <table frame="hsides"> <tr> <th>100</th> <th>200</th> </tr> <tr> <td>300</td> <td>400</td> </tr> </table> <p>Table with frame="vsides":</p> <table frame="vsides"> <tr> <th>100</th> <th>200</th> </tr> <tr> <td>300</td> <td>400</td> </tr> </table> </body> </html>
希望以上可以解决你们心中的一些疑惑,其中可能会有不对的地方或是需要改进的地方,欢迎留言纠正。感觉还不错欢迎关注收藏转载哦