Today the project encountered a problem, a long string of strings such as: 003403ff0014e54016030cc655bc3242, but such as: Yuhua District, Shijiazhuang City, Hebei Province, China Huai an road Masakiyo street intersection so you can change line.
The reason is: if there is no space between the letters, the system is considered a word and will not be wrapped automatically. This is not the case with Chinese characters.
Workaround:
Use the form to load the content to be displayed.
Add "style= ' table-layout:fixed" to the <table> tag,
Add "style= ' Word-wrap:break-word '" to the <td> tag that will force word wrapping.
That's all you can do.
In Div:
DIV implements long English letter wrap CSS
IE browser
#wrap {white-space:normal; width:200px;}
Or
#wrap {word-break:break-all;width:200px;}
Firefox browser
#wrap {white-space:normal; width:200px; overflow:auto;}
Or
#wrap {word-break:break-all;width:200px; overflow:auto;}
2, do not set the cell width, but the Chinese characters will be automatically wrapped:
Solution: <table style= ' Word-break:keep-all ' >
Turn from: http://www.educity.cn/wenda/7175.html, thanks for the original!
TD does not contain Chinese characters string does not wrap, contains the Chinese character's ability to wrap the problem causes and the solution