Safari CSS word-break: keep-all; is not working

一曲冷凌霜 提交于 2019-12-19 22:13:04

问题


I see that in the Safari browser the CSS word-break property which I need is not being used. Why ?


回答1:


Update : Safari now supports keep-all as a value. As of Safari 9.


word-break property is partially supported in Safari, i.e it only supports word-break if you use break-all as a value and not keep-all...

As you can see here (Read the note at very bottom) which says

Note: Partial support refers to supporting the "break-all" value, but not the "keep-all" value.


Bug Report 43917 - CSS3 'word-break: keep-all' is not supported




回答2:


I have found this to work:

selector{ -webkit-hyphens: none;}



回答3:


As of Safari 9 including iOS, word-break: keep-all is finally supported.

Bug Report 123782 - [CSS3] Add support for the word-break:keep-all CSS property



来源:https://stackoverflow.com/questions/20703235/safari-css-word-break-keep-all-is-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!