HTML table frame properties
Examples
Show only around the outside border of the table:
<table frame="box">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
try it"
Browser Support
Internet Explorer 9 +, Firefox, Opera, Chrome and Safari support frame attributes.
Note: 8 and earlier versions of Internet Explorer do not support the <table> tag of the frame properties.
Definition and Usage
HTML5 does not support the <table> frame properties. Use CSS instead.
frame attribute specifies which part of the outer border of the table is visible.
Tip: From a practical point of view, it is best not specified frame, but the use of CSS to add borders (border style) .
grammar
<table frame="value">
Property Value
值 | 描述 |
---|---|
void | 不显示外侧边框。 |
above | 显示上部的外侧边框。 |
below | 显示下部的外侧边框。 |
hsides | 显示上部和下部的外侧边框。 |
vsides | 显示左边和右边的外侧边框。 |
lhs | 显示左边的外侧边框。 |
rhs | 显示右边的外侧边框。 |
box | 在所有四个边上显示外侧边框。 |
border | 在所有四个边上显示外侧边框。 |
HTML <table> tag