中文字幕一区二区人妻电影,亚洲av无码一区二区乱子伦as ,亚洲精品无码永久在线观看,亚洲成aⅴ人片久青草影院按摩,亚洲黑人巨大videos

HTML th nowrap 屬性

HTML th 標(biāo)簽參考手冊 HTML <th> 標(biāo)簽

實例

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

運(yùn)行代碼 ?

瀏覽器支持

Internet ExplorerFirefoxOperaGoogle ChromeSafari

所有主流瀏覽器都支持 nowrap 屬性。


定義和用法

HTML5 不支持 <th> nowrap 屬性。請使用 CSS 代替。

在 HTML 4.01 中,<th> 的 nowrap 屬性 已廢棄。

nowrap 屬性是一個布爾屬性。

nowrap 屬性規(guī)定表頭單元格中的內(nèi)容不換行。


兼容性注釋

在 HTML 4.01 中,<th> 的 nowrap 屬性已廢棄。請使用 CSS 代替。

CSS 語法:<th style="white-space: nowrap">

CSS 實例:表頭單元格中不換行

在我們的 CSS 教程中,您可以找到更多有關(guān) white-space 屬性 的細(xì)節(jié)。


HTML 與 XHTML 之間的差異

在 XHTML 中,禁止屬性最小化,nowrap 屬性必須定義為 <th nowrap="nowrap">。


語法

<th nowrap>

HTML th 標(biāo)簽參考手冊 HTML <th> 標(biāo)簽其他擴(kuò)展