English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Das frame-Attribut des HTML-Tabs spezifiziert, welche Teile des äußeren Tabellenrahmens sichtbar sein sollten. Es ist besser, kein Framework zu verwenden, sondern CSS, um Rahmen anzuwenden.
Nur die äußeren Rahmen der Tabelle anzeigen:
<p>Die Tabelle hat frame="box":</p> <table frame="box"> <tr> <th>Name</th> <th>Ergebnis</th> </tr> <tr> <td>王五</td> <td>96.5</td> </tr> </table> <p>Die Tabelle hat frame="above":</p> <table frame="above"> <tr> <th>Name</th> <th>Ergebnis</th> </tr> <tr> <td>王五</td> <td>96.5</td> </tr> </table> <p>Die Tabelle hat frame="below":</p> <table frame="below"> <tr> <th>Name</th> <th>Ergebnis</th> </tr> <tr> <td>王五</td> <td>96.5</td> </tr> </table> <p>Die Tabelle hat frame="hsides":</p> <table frame="hsides"> <tr> <th>Name</th> <th>Ergebnis</th> </tr> <tr> <td>王五</td> <td>96.5</td> </tr> </table> <p>Die Tabelle hat frame="vsides":</p> <table frame="vsides"> <tr> <th>Name</th> <th>Ergebnis</th> </tr> <tr> <td>王五</td> <td>96.5</td> </tr> </table>Testen Sie es heraus ‹/›
IEFirefoxOperaChromeSafari
Internet Explorer 9+Firefox, Opera, Chrome und Safari unterstützen das frame-Attribut.
Note:Internet Explorer 8 and earlier versions do not support the frame attribute of the <table> tag.
HTML5 The <table> frame attribute is not supported. Please use CSS instead.
The frame attribute specifies which part of the outer table border is visible.
Tip:For practical purposes, it is better not to specify frame but to use CSS to add borders (border style).
<table frame="value">
Value | Description |
---|---|
void | Do not show outer borders. |
above | Show the top outer border. |
below | Show the bottom outer border. |
hsides | Show the top and bottom outer borders. |
vsides | Show the left and right outer borders. |
lhs | Show the left outer border. |
rhs | Show the right outer border. |
box | Show outer borders on all four sides. |
border | Show outer borders on all four sides. |