<!--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
textarea自适应高度
最新推荐文章于 2024-05-14 11:22:04 发布
本文介绍了一种通过JavaScript实现的Textarea自适应高度的方法。当文本区域内的内容发生变化时,其高度会自动调整以适应内容长度,确保良好的用户体验并避免不必要的滚动。
1万+

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



