0
点赞
收藏
分享

微信扫一扫

textarea自动适应高度

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 条评论