HTML th nowrap Attribut
Beispiele
Header-Zelle mit einem nowrap Attribut:
<table border="1">
<tr>
<th>Month</th>
<th nowrap>My Savings for a new car</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</table>
<tr>
<th>Month</th>
<th nowrap>My Savings for a new car</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</table>
Versuchen »
Browser-Unterstützung
Alle gängigen Browser unterstützen die nowrap Attribut.
Definition und Verwendung
HTML5 nicht das <th> nowrap Attribut unterstützen. Verwenden Sie CSS statt.
In HTML 4.01, <th> Das nowrap Attribut ist veraltet .
nowrap Attribut ist ein Boolean-Attribut.
nowrap Attribut gibt die Kopfzelleninhalt nicht wickeln.
Hinweise zur Kompatibilität
In HTML 4.01, <th> Das nowrap Attribut ist veraltet. Verwenden Sie CSS statt.
CSS Syntax: <th style = "white-space: nowrap">
CSS Beispiel: Tabellenkopf Zelle nicht einwickeln
In unserem CSS Tutorial können Sie weitere Informationen über die finden white-space - Attribut Details.
Die Unterschiede zwischen HTML und XHTML
In XHTML-Attribut Minimierung, nowrap Attribut verbieten müssen <th nowrap = "nowrap"> definiert werden.
Grammatik
<th nowrap>
HTML <th> -Tag