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

黄舟
Release: 2017-05-25 10:11:48
Original
1660 people have browsed it

Grammar

word-wrap: normal|break-word;

所有主流浏览器都支持 word-wrap 属性。
Copy after login
<p style="border:1px #f00 solid;width:50px;word-wrap:break-word;">
    https://home.cnblogs.com/set/account/</p>
Copy after login

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!

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!