文本框根据内容自动换行
文本框中添加以下js事件就可以了.
onpropertychange="this.style.height = this.scrollHeight + 3 +'px';"
oninput="this.style.height = this.scrollHeight + 3 + 'px';"
———————————————————————————————————
浩瀚的天空,会有改变的希望,世界会不会变得更加好,选择在於我们的手上。

文本框中添加以下js事件就可以了.
onpropertychange="this.style.height = this.scrollHeight + 3 +'px';"
oninput="this.style.height = this.scrollHeight + 3 + 'px';"