您的位置:首页 > 其它

Textarea 操作

2007-04-13 17:31 211 查看
<input value="51js.com" onclick="alert(this.createTextRange().boundingWidth);">

<input value="51js.com" style="width:185px; border:solid 1px #999999"

onpropertychange="this.style.posWidth=this.createTextRange().boundingWidth;">

 

<textarea id="neirong" name="neirong" style="width:185px;height:36px;overflow:hidden; border:solid 1px #999999" onpropertychange="if(this.scrollHeight>36){this.style.posHeight=this.scrollHeight}else{this.style.posHeight=36}"></textarea>

 <input type="text" style="width: 50; overflow: visible">

 

<textarea id="neirong" name="neirong" style="width:185px;height:36px;overflow:hidden; border:solid 1px #999999;overflow: visible" ></textarea>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  border input