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>
<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>
相关文章推荐
- JQuery操作 text,select,textarea,radio,checkbox
- jsp页面textarea框中值操作方式
- jquery操作textarea
- ASP.net中直接操作textarea控件的方法
- 【转】 封装js操作textarea 方法集合(兼容很好)。
- textarea换行与空格相关操作
- js操作textarea方法集合
- 【分享】 封装js操作textarea 方法集合(兼容很好)。
- html---textarea初始化时就有个table空格以及tab键操作无效
- innerText 操作 textarea 的 “坑”
- textarea内容的JS操作
- jQuery获取form中Select/textarea/checkbox/radio选择的Text和Value等其他常见操作
- textarea的相关操作
- 光标操作知多少?(input textarea 操作)
- html---textarea初始化时就有个table空格以及tab键操作无效
- js操作textarea换行显示与拆分
- js操作textarea方法集合封装(兼容IE,firefox)