textarea自动适应高度

阅读 92

2023-01-27

textarea自动适应高度,兼容IE/Firefox、chrome

代码:

<textarea name="textarea" id="textarea" style='overflow-y: hidden;height:20px' onpropertychange="this.style.height = this.scrollHeight + 'px';" oninput="this.style.height = this.scrollHeight + 'px';">
</textarea>

textarea自动适应高度_大数据


原创文章,转载请注明出处!!



相关推荐

精彩评论(0)

0 0 举报