Welcome 微信登录

首页 / 脚本样式 / JavaScript / js textarea自动增高并隐藏滚动条

复制代码 代码如下:
<textarea id="tValue" style="overflow-y:hidden; height:20px;" onpropertychange="this.style.height=this.scrollHeight + "px"" oninput="this.style.height=this.scrollHeight + "px""></textarea>