我使用以下css在我的网站中自动连字符文本:
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
但在铬合金中这没有效果。我已经读过,Chrome不支持这个。在chrome中是否有针对连字符的解决方法?谢谢!
目前只有Android和MacOS上的Chrome支持连字符,如下所示:http://caniuse.com/#search=hyphens
我也按照埃里克的建议使用了Hyphenator。
软连字符可以应用JavaScript(最佳解决方案)或任何服务器端语言,然而,它用自己的答案回答问题。