HTML td nowrap 屬性
實例
帶有nowrap 屬性的表格單元格:
<table border="1">
<tr>
<th>Poem</th>
<th>Poem</th>
</tr>
<tr>
<td nowrap>Never increase, beyond what is necessary, the number of entities required to explain anything</td>
<td>Never increase, beyond what is necessary, the number of entities required to explain anything</td>
</tr>
</table>
<tr>
<th>Poem</th>
<th>Poem</th>
</tr>
<tr>
<td nowrap>Never increase, beyond what is necessary, the number of entities required to explain anything</td>
<td>Never increase, beyond what is necessary, the number of entities required to explain anything</td>
</tr>
</table>
嘗試一下»
瀏覽器支持
所有主流瀏覽器都支持nowrap 屬性。
定義和用法
HTML5不支持<td> nowrap屬性。 請使用CSS代替。
在HTML 4.01中,<td>的nowrap屬性已廢棄 。
nowrap 屬性是一個布爾屬性。
nowrap 屬性規定表格單元格中的內容不換行。
兼容性註釋
在HTML 4.01 中,<td> 的nowrap 屬性已廢棄。 請使用CSS 代替。
CSS 語法:<td style="white-space: nowrap">
在我們的CSS教程中,您可以找到更多有關white-space屬性的細節。
HTML 與XHTML 之間的差異
在XHTML 中,禁止屬性最小化,nowrap 屬性必須定義為<td nowrap="nowrap">。
語法
<td nowrap>
HTML <td>標籤