css - 如何在连字符处将表格单元格中的文本换行?

标签 css line-breaks css-tables word-wrap

我找到了 text-wrap 和 overflow-wrap CSS 3 属性,但它们似乎没有任何作用。

http://www.w3schools.com/cssref/css3_pr_text-wrap.asp

如何在表格单元格内用连字符换行?在 Chrome 14 上测试。

最佳答案

您需要建议的(非标准)CSS 3 文本 hyphens属性:

td { hyphens: manual }

注意这只是supported in FF, Chrome, and Safari; it is unsupported in IE or Opera .

关于css - 如何在连字符处将表格单元格中的文本换行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7773143/

相关文章:

html - 对齐 html 电子邮件中表格中的数据单元格元素

html - 如何用css只格式化一个表格

css - 垂直对齐表格单元格不适用于绝对位置

css - 下划线导航链接

javascript - 原生 Android 浏览器上的链接问题

php 替换多个 br 标签

css - :after pseudo-element content lost when pasted into editor 中的换行符

html - CSS 特定表

html - 固定页眉和页脚以及 100% 高度内容

html - 在图片上移动文本