What is the difference between “word-break: break-all” versus “word-wrap: break-word” in CSS

前端 未结 10 1342
离开以前
离开以前 2020-11-22 07:39

I am currently wondering what is the difference between the two. When I used both they seem to break the word if it is not fitting the container. But why did W3C made two wa

10条回答
  •  猫巷女王i
    2020-11-22 08:02

    In addition to the previous comments browser support for word-wrap seems to be a bit better than for word-break.

提交回复
热议问题