让 textarea 自动适应内容的高度 <textarea style="300px;height:100px;overflow-y:visible"></textarea> 这里的 height 属性是让 textarea 有最小高度, overflow-y:visible 使用内容总是可见,这一句最重要