How to use automatic CSS hyphens with `word-break: break-all`?

后端 未结 3 1704
粉色の甜心
粉色の甜心 2020-12-01 16:03

I\'m using word-break: break-all; and want to know how I can have the browser automatically insert the hyphens, as demonstrated in an MDN example.

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-01 16:21

    The -ms-hyphens property only works in IE10+. It's not possible in IE9 or below.

    See the browser compatibility chart at the bottom of the reference link you provided.

    It doesn't work in Chrome yet: WebKit Hyphenation

提交回复
热议问题