<!--textarea自适应高度-->
<h3>textarea自适应高度</h3>
<textareastyle='border:1pxsolid#94BBE2;width:100%;'rows=15onpropertychange='this.style.posHeight=this.scrollHeight'id=textareaonfocus='textarea.style.posHeight=this.scrollHeight'>
<br>
<Br>
</textarea>
http://www.corange.cn/archives/2008/06/1272.html
<h3>textarea自适应高度</h3>
<textareastyle='border:1pxsolid#94BBE2;width:100%;'rows=15onpropertychange='this.style.posHeight=this.scrollHeight'id=textareaonfocus='textarea.style.posHeight=this.scrollHeight'>
<br>
<Br>
</textarea>
http://www.corange.cn/archives/2008/06/1272.html
本文介绍了一种通过JavaScript实现的Textarea自适应高度的方法。通过监听属性变化调整元素的高度,使得文本区域能够根据输入内容自动扩展或收缩,提供更好的用户体验。
1667

被折叠的 条评论
为什么被折叠?



