English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML-Tabelle frame-Attribut

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.

 HTML <table> Tag

Online-Beispiel

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 ‹/›

Browserkompatibilität

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.

Definition and Usage

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).

Syntax

<table frame="value">

Attribute Value

ValueDescription
voidDo not show outer borders.
aboveShow the top outer border.
belowShow the bottom outer border.
hsidesShow the top and bottom outer borders.
vsidesShow the left and right outer borders.
lhsShow the left outer border.
rhsShow the right outer border.
boxShow outer borders on all four sides.
borderShow outer borders on all four sides.
 HTML <table> Tag