那小那小

关注

textarea自动适应高度

那小那小

关注

阅读 90

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自动适应高度_大数据


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



相关推荐

mm_tang

jQuery: textarea 自动适应高度 无下拉条 Elastic

mm_tang 88 0 0

Sky飞羽

html textarea文本域高度自适应

Sky飞羽 94 0 0

思考的鸿毛

Iframe自动适应高度

思考的鸿毛 68 0 0

自由情感小屋

设置iframe自动高度iframe自适应高度

自由情感小屋 67 0 0

蚁族的乐土

sencha touch 可自动增长高度TextArea

蚁族的乐土 79 0 0

ITWYY

Iframe自动适应宽度和高度

ITWYY 80 0 0

爱写作的小土豆

使用文本可编辑属性 contenteditable 轻松做到textarea 高度自适应

爱写作的小土豆 90 0 0

戴老师成长记录仪

uniApp使用textarea,默认高度且文字多后自适应设置

戴老师成长记录仪 13 0 0

雅典娜的棒槌

li浮动时ul自动适应高度方法

雅典娜的棒槌 63 0 0

小编

Vue进阶(幺叁玖):textarea文本框根据内容自适应改变高度

小编 59 0 0

精彩评论(0)

0 0 举报