帶有 nowrap 屬性的表格單元:
<table border="1">
<tr>
<th>Poem</th>
<th>Poem</th>
</tr>
<tr>
<td nowrap="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 屬性規(guī)定表格單元格中的內(nèi)容不換行。
盡管不贊成使用 nowrap 屬性,但是所有瀏覽器都支持它。
在 HTML 4.01 中,不贊成使用 td 元素的 nowrap 屬性;在 XHTML 1.0 Strict DTD 中,不支持 td 元素的 nowrap 屬性。
請(qǐng)使用 CSS 代替。
CSS 語(yǔ)法:<td style="white-space: nowrap">
在我們的 CSS 教程中,您可以找到更多有關(guān) white-space 屬性的細(xì)節(jié)。
<td nowrap="value">
值 | 描述 |
---|---|
nowrap | 規(guī)定表格單元格中的內(nèi)容不換行。 |
如對(duì)本文有疑問(wèn),請(qǐng)?zhí)峤坏浇涣髡搲瑥V大熱心網(wǎng)友會(huì)為你解答??! 點(diǎn)擊進(jìn)入論壇
Powered by 365建站網(wǎng) RSS地圖 HTML地圖
copyright © 2013-2024 版權(quán)所有 鄂ICP備17013400號(hào)