【发布时间】:2017-05-19 14:53:02
【问题描述】:
我需要使用 css 在断词上添加自动连字符。我已经使用波纹管 css 添加连字符,但它不起作用
width: 150px; border: solid 1px black;
-ms-word-break:break-all;
word-break:break-all;
word-break:break-word;
-webkit-hyphens:auto;
-moz-hyphens:auto;
hyphens:auto;
我需要为 Mozilla Firefox 53.0.3 和 Google chrome 添加连字符
【问题讨论】:
-
Chrome 不支持连字符.. 看看这个css-tricks.com/almanac/properties/h/hyphenate
-
Sahil Dhir 感谢您提供宝贵的信息