Breaking words using CSS

前端 未结 6 1295
生来不讨喜
生来不讨喜 2020-12-29 11:32

\"screenshot\"

When the text in

tag is too long, it appears like this, how to prevent th

6条回答
  •  执笔经年
    2020-12-29 12:15

    The right property is word-wrap: break-word.

    You can specify either normal or break-word value with the word-wrap property. normal means the text will extend the boundaries of the box. break-word means the text will wrap to next line.

    word-wrap is supported in IE 5.5+, Firefox 3.5+, and WebKit browsers such as Chrome and Safari.

提交回复
热议问题