When the text in tag is too long, it appears like this, how to prevent th
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.