如何在Google Chrome浏览器中使用连字符?

问题描述 投票:28回答:2

我使用以下css在我的网站中自动连字符文本:

-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;

但在铬合金中这没有效果。我已经读过,Chrome不支持这个。在chrome中是否有针对连字符的解决方法?谢谢!

css3 google-chrome css-hyphens
2个回答
21
投票

目前只有Android和MacOS上的Chrome支持连字符,如下所示:http://caniuse.com/#search=hyphens

我也按照埃里克的建议使用了Hyphenator


5
投票

软连字符可以应用JavaScript(最佳解决方案)或任何服务器端语言,然而,它用自己的答案回答问题。

© www.soinside.com 2019 - 2024. All rights reserved.