HTML <td> nowrap属性

HTML td 标签参考手册HTML <td> タグ

例

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>

試してみる »

ブラウザサポート

Internet ExplorerFirefoxOperaGoogle ChromeSafari

すべての主要ブラウザが 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 标签参考手册HTML <td> タグ その他の拡張