我使用以下CSS在我的网站中自动连字符文本:
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
但是在chrome中这没有效果。我已经读过,Chrome不支持此功能。chrome中有没有断字的解决方法?谢谢!
目前,Chrome仅在Android和macOS上(仅“ auto”值)受连字符支持,您可以在此处看到:http : //caniuse.com/#search=hyphens
正如Eric所建议的,我也使用了Hyphenator。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句