js textarea自动增高并隐藏滚动条

2026-01-17 14:46:37 作者:用户投稿
复制代码 代码如下:
<textarea id="tValue" style="overflow-y:hidden; height:20px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'"></textarea>

联络方式:

4008905355

邮箱:9196886@qq.com

Q Q:9196886

微信二维码