Home  >  Article  >  Web Front-end  >  Sample code sharing for using word-wrap to force English words to new lines in CSS3

Sample code sharing for using word-wrap to force English words to new lines in CSS3

黄舟
黄舟Original
2017-05-25 10:11:481631browse

Grammar

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn