32

[贝聊科技]不简单的自适应高度输入框

 5 years ago
source link: https://juejin.im/post/5b7653bde51d454dba70c0b1
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
作者:韩永豪 前端开发部 前端开发工程师 前言 前段时间在项目开发中遇到这样一个需求——文本输入框的高度要随着框内文本所占高度而变化。 下面讲一下实现方案的探索过程。 方案一:利用contenteditable属性 首先想到的方法,是使用 HTML 5

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK