Latest web development tutorials

HTML th atrybutu nowrap

HTML tag th Reference Manual HTML <th> tag

Przykłady

komórek nagłówka z atrybutem nowrap:

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

Spróbuj »

Pomoc Browser

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Wszystkie główne przeglądarki obsługują atrybut nowrap.


Definicja i Wykorzystanie

HTML5 nie obsługuje <th> nowrap atrybutu. Za pomocą CSS zamiast.

W HTML 4.01, <th> Atrybut nowrap jest przestarzała .

nowrap atrybut jest atrybutem logiczna.

atrybut nowrap określa zawartość komórki nagłówka nie zawijać.


Zgodność Uwagi

W HTML 4.01, <th> Atrybut nowrap jest przestarzała. Za pomocą CSS zamiast.

CSS Składnia: <p style = "white-space: nowrap">

CSS Przykład: komórka nagłówka tabeli nie owijać

W naszym poradniku CSS można znaleźć więcej informacji na temat atrybutów white-space szczegóły.


Różnice między HTML i XHTML

W XHTML, zakazać minimalizację atrybutu, atrybut nowrap musi być zdefiniowany jako <th nowrap = "nowrap">.


gramatyka

<th nowrap>


HTML tag th Reference Manual HTML <th> tag