word-wrap: normal|break-word; 所有主流浏览器都支持 word-wrap 属性。
<p style="border:1px #f00 solid;width:50px;word-wrap:break-word;"> https://home.cnblogs.com/set/account/</p>
The effect of not writing word-wrap:break-word;
The effect of adding word-wrap:break-word;
The above is the detailed content of Sample code sharing for using word-wrap to force English words to new lines in CSS3. For more information, please follow other related articles on the PHP Chinese website!