Force No Line wrapping
div{
White-space:nowrap;
}
Wrap Line
div{
Word-wrap:break-word;
Word-break:normal;
}
Force word breaking in English
div{
Word-break:break-all;
}
============================================
CSS settings do not change careers:
Overflow:hidden Hide
White-space:normal Default
Pre newline and other whitespace characters will be protected
NoWrap forces all text to be displayed in the same line until the text ends or the BR object is encountered
Set up a newline
Word-break:
normal; Allow line wrapping in words according to the Asian and non-Asian language text rules
Break-all: This behavior is the same as normal for Asian languages. Also allows any word in a non-Asian text line to be disconnected. This value is appropriate for Asian text that contains some non-Asian text
Keep-all: Same as normal for all non-Asian languages. For Chinese, Korean, Japanese, word is not allowed to break. Suitable for non-Asian texts containing a small amount of Asian text and a high resolution between