<!doctype HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/ Xhtml1-transitional.dtd ">
<html xmlns=" http://www.jzread.com/1999/xhtml ">
<head>
< Meta http-equiv= "Content-type" content= "HTML; Charset=utf-8 "/>
<title>firefox-break-word</title>
<style type=" Text/css ">
<!- -/*--><! [cdata[/*><!--*/
#break {border:1px solid #ccc;p adding:.4em. 8em;width:200px;word-wrap:break-word; Word-break:break-all;
/*] >*/-->
</style>
</head>
<body>
<div id= "Break" >
if there were pager Sympathy in the world, there would is pager trouble in the world. (O. Wilde)
</div>
<script>
Function Tobreakword (intlen) {
var Obj=document.getelementbyid ( "FF");
Var strcontent=obj.innerhtml;
var strtemp= "";
while (Strcontent.length>intlen) {
Strtemp+=strcontent.substr (0,intlen) +
";
Strcontent=strcontent.substr (intlen,strcontent.length);
}
strtemp+= "
" +strcontent;
Obj.innerhtml=strtemp;
}
if (document.getElementById &&!document.all) Tobreakword (Notoginseng)
</script>
1. (ie browser) consecutive English characters and Arabic numerals, using Word-wrap:break-word or Word-break:break-all;
#wrap {word-break:break-all; width:200px;}
Or
#wrap {word-wrap:break-word; width:200px;}
<div id= "Wrap" >abcdefghijklmnabcdefghijklmnabcdefghijklmn111111111</div>
Effect: You can implement line wrapping
2. (Firefox browser) consecutive English characters and Arabic numerals break, all versions of Firefox did not solve this problem, we have to let go beyond the bounds of the characters hidden or, add a scroll bar to the container
#wrap {word-break:break-all; width:200px; overflow:auto;}
<div id= "Wrap" >abcdefghijklmnabcdefghijklmnabcdefghijklmn111111111</div>
Effect: Container normal, content hidden
</body>
</html>