Force no line break div{white-space:nowrap;} Automatic line div{word-wrap:break-word; word-break:normal;} Force English words to break div{word-break:break-all;}
============================================CSS settings do not change careers:Overflow:hidden Hidden
white-space:normal Default
Pre line breaks and other whitespace characters are protected
nowrap Force all text to be displayed in the same line until the text ends or encounters a BR object
set forced line breaks
Word-break:
normal; Allow line wrapping in words according to the text rules of Asian and non-Asian languages
Break-all: The behavior is the same as in Asian languages. Also allows non-Asian-language text lines to be broken within any word. 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 break is not allowed. A high-resolution solution for non-Asian texts with small amounts of Asian text============================================read the above introduction, quickly try to see the effect bar! No line break in Englishadd Word-break:break-all to CSS and solve problems. This problem is only IE, under the FF test, FF can add their own scroll bar, so it does not affect the effectsuggest you do skin, remember in body Riga Word-break:break-all, this can solve the IE frame is open in English problemThe following is a description of the Word-break, note that Word-break is a ie5+ proprietary propertySyntax:Word-break:normal | break-all | Keep-allParameters:Normal: Allow line wrapping in words according to Asian and non-Asian language text rules
Break-all: The behavior is the same as in Asian languages. Also allows non-Asian-language text lines to be broken within any word. 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 break is not allowed. Suitable for non-Asian texts containing small amounts of Asian textDescription:Sets or retrieves the word wrapping behavior of text within an object. Especially when multiple languages are present.
for Chinese, break-all should be used.
the corresponding script attribute is wordbreak. Please refer to the other bibliography I have written. Example:div {word-break:break-all;}
CSS implements page text without wrapping, wrapping, forcing line wrapping