Home  >  Article  >  Web Front-end  >  css forced line break_html/css_WEB-ITnose

css forced line break_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:21:221159browse

css forces label content to wrap, but long-byte English words are not split


Reply to discussion (solution)

Closing rate: 33.33%

word-wrap:break-word;

强制不换行div{white-space:nowrap;}自动换行div{ word-wrap: break-word; word-break: normal; }强制英文单词断行div{word-break:break-all;} 

width:500px; float:left; word-break:break-all;

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