正文

火狐下强制换行2009-11-24 17:41:00

【评论】 【打印】 【字体: 】 本文链接:http://blog.pfan.cn/5ibc/50167.html

分享到:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh" lang="zh"><head profile="http://www.w3.org/2000/08/w3c-synd/#"><meta http-equiv="content-language" content="zh-cn" /><meta http-equiv="content-type" content="text/html;charset=gb2312" /><title>blueidea</title><style type="text/css">/*<![CDATA[*/div { width:300px; word-wrap:break-word; border:1px solid red; }/*]]>*/</style></head><body><div id="ff">aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</div><script type="text/javascript">// <![CDATA[function toBreakWord(intLen){var obj=document.getElementById("ff");var strContent=obj.innerHTML;  var strTemp="";while(strContent.length>intLen){strTemp+=strContent.substr(0,intLen)+"&#10;";  strContent=strContent.substr(intLen,strContent.length);  }strTemp+="&#10;"+strContent;obj.innerHTML=strTemp;}if(document.getElementById  &&  !document.all)  toBreakWord(37)// ]]></script></body></html>

阅读(1725) | 评论(0)


版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!

评论

暂无评论
您需要登录后才能评论,请 登录 或者 注册