td标签不换行CSS写法
2013-12-19 10:55
225 查看
HTML <td> 标签的 nowrap 属性
HTML <td> 标签定义和用法
nowrap 属性规定表格单元格中的内容不换行。实例
带有 nowrap 属性的表格单元:<table border="1"> <tr> <th>Poem</th> <th>Poem</th> </tr> <tr> <td [code]nowrap="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>
[/code]
TIY
浏览器支持
尽管不赞成使用 nowrap 属性,但是所有浏览器都支持它。兼容性注释
在 HTML 4.01 中,不赞成使用 td 元素的 nowrap 属性;在 XHTML 1.0 Strict DTD 中,不支持 td 元素的 nowrap 属性。请使用 CSS 代替。
CSS 语法:<td style="white-space: nowrap">
CSS 实例:td 中不换行
在我们的 CSS 教程中,您可以找到更多有关
white-space 属性的细节。
语法
<td nowrap="value">
属性值
值 | 描述 |
---|---|
nowrap | 规定表格单元格中的内容不换行。 |
相关文章推荐
- td标签不换行CSS写法
- html小技巧之td,div标签里内容不换行
- td标签英文不自动换行
- 开发日志:struts标签[<s:selec>/<s:submit>/<s:form>......] 在table的时候位置错误 [会自动换行/自动生成tr、td的问题]
- html小技巧之td,div标签里内容不换行
- 表格 CSS(不换行) HTML <td> 标签的 nowrap 属性
- td标签不用tr强制换行
- td标签里内容不换行
- thinkphp 反字符 去标签 自动加点 去换行 截取字符串
- 让pre标签自动换行
- HTML中,表格中禁止换行,td的nowrap属性
- 根据服务器端返回的字符数组,展示字符串标签,需要涉及字符串长度处理以及字符串换行,字符串不够一行自动跳到第二行的逻辑
- 让标签内部的内容在一行显示,不随着浏览器大小换行
- androi自定义自动换行的View(类似网页的标签Tag)
- ie下span标签浮动换行的简单解决方法
- html中的换行标签
- CSS 自动换行, 块级标签 变 行级标签
- <td>标签scope属性
- tr和td标签
- Ueditor指定用br做换行标签