62,266
社区成员
发帖
与我相关
我的任务
分享 <div style="white-space:normal; width:200px; background-color:Yellow;">
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</div><body class="home" onload="toBreakWord(70)">
<script language="javascript" type="text/javascript">
function toBreakWord(intLen){
var obj=document.getElementById("change");
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;
}
</script>