html中nowrap 属性规定表格单元格中的内容不换行。

[复制链接]
查看2591 | 回复1 | 2019-7-14 07:53 | 显示全部楼层 |阅读模式
nowrap 属性规定表格单元格中的内容不换行。
CSS 语法:<td style="white-space: nowrap">
案例:
  1. <table border="1">
  2.   <tr>
  3.     <th>Poem</th>
  4.     <th>Poem</th>
  5.   </tr>
  6.   <tr>
  7.     <td nowrap="nowrap">Never increase, beyond what is necessary, the
  8.         number of entities required to explain anything</td>
  9.     <td>Never increase, beyond what is necessary, the number of entities
  10.         required to explain anything</td>
  11.   </tr>
  12. </table>
复制代码

苹果 | 2019-8-19 22:01 | 显示全部楼层
学习了,感谢自丢教程网
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

UID
1
贡献
387
丢币
38902
主题
4607
回帖
116
注册时间
2018-9-25
最后登录
2024-4-16