P粉6424362822023-08-22 10:24:30
I’m not sure about browser compatibility
word-break: break-all;
You can also use the <wbr>
tag
P粉8645949652023-08-22 09:39:19
This works even in IE6, which is a pleasant surprise.
word-wrap: break-word
has been replaced by overflow-wrap: break-word;
, which works in all modern browsers. Since IE is an outdated browser, it will always rely on the deprecated and non-standard word-wrap
.
The current case of using word-wrap
will still work fine as it is an alias for the canonical overflow-wrap
.