欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

HTML <th> 標(biāo)簽的 nowrap 屬性

定義和用法

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

實(shí)例

帶有 nowrap 屬性的表格單元:

<table border="1">
  <tr>
    <th>Company in USA</th>
    <th nowrap="nowrap">Address</th>
  </tr>
  <tr>
    <td>Apple, Inc.</td>
    <td>1 Infinite Loop Cupertino, CA 95014</td>
  </tr>
  <tr>
    <td>Google, Inc.</td>
    <td>1600 Amphitheatre Parkway Mountain View, CA 94043</td>
  </tr>
</table>

TIY

瀏覽器支持

盡管不贊成使用 nowrap 屬性,但是所有瀏覽器都支持它。

兼容性注釋

在 HTML 4.01 中,不推薦使用 th 元素的 nowrap 屬性;在 XHTML 1.0 Strict DTD 中,不支持 th 元素的 nowrap 屬性。

請使用 CSS 代替。

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

CSS 實(shí)例:th 中不換行

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

語法

<th nowrap="value">

屬性值

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