文本不换行-css
http://www.w3school.com.cn/css/css_text.asp
1,文本不换行
white-space: nowrap
-----------
http://www.w3schools.com/cssref/pr_text_white-space.asp
The white-space property is supported in all major browsers.
Note: The value "inherit" is not supported in IE7 and earlier. IE8 requires a !DOCTYPE. IE9 supports "inherit".
--
normalSequences of whitespace will collapse into a single whitespace. Text will wrap when necessary. This is default
nowrapSequences of whitespace will collapse into a single whitespace. Text will never wrap to the next line. The text continues on the same line until a <br /> tag is encountered
preWhitespace is preserved by the browser. Text will only wrap on line breaks Acts like the <pre> tag in HTML
pre-lineSequences of whitespace will collapse into a single whitespace. Text will wrap when necessary, and on line breaks
pre-wrapWhitespace is preserved by the browser. Text will wrap when necessary, and on line breaks
inheritSpecifies that the value of the white-space property should be inherited from the parent element
2,
word-break: break-all; /*not support firefox and Opera*/
word-wrap: break-word; /*not effect ie6*/
-----------
http://www.w3schools.com/cssref/css3_pr_word-break.asp
The word-break property specifies line breaking rules for non-CJK scripts.
--
normalBreaks non-CJK scripts according to their own rules
break-allLines may break between any two characters