如何分行显示textarea中的内容?
好好小妖 2008-12-20 10:21:03 如何分行显示textarea中的内容?
例如
sSBInfo=str1+"\n"+str2; //str1 str2存储从数据库中读取的值
strImg+="<div style=\"LEFT:"+m+"px;TOP:"+n+"px;POSITION: absolute;VISIBILITY: visible;Z-INDEX: 108;\"><textarea id='sbxx1' runat='server' style='overflow-y:hidden;VISIBILITY: visible;BACKGROUND-COLOR: transparent;BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none;BORDER-BOTTOM-STYLE: none;width:150px;height:80px;' onmousemove=\"this.value='"+sSBInfo+"';\" ></textarea></div>";
为什么不能分行显示啊?