您的位置:58编程 > html nowrap属性 HTML td nowrap 属性

html nowrap属性 HTML td nowrap 属性

2023-05-14 03:33 HTML参考手册

html nowrap属性 HTML td nowrap 属性

html nowrap属性 HTML td nowrap 属性

html nowrap属性

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 实例:表格单元格中不换行

在我们的 CSS 教程中,您可以找到更多有关 white-space 属性 的细节。


HTML 与 XHTML 之间的差异

在 XHTML 中,禁止属性最小化,nowrap 属性必须定义为 <td nowrap="nowrap">。


语法

<td nowrap>


HTML td 标签参考手册 HTML <td> 标签
阅读全文
以上是58编程为你收集整理的html nowrap属性 HTML td nowrap 属性全部内容。
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。
相关文章
© 2024 58编程 58biancheng.com 版权所有 联系我们
桂ICP备12005667号-32 Powered by CMS