联系我们

<textarea> captures multi-line text input. Unlike <input type="text">, it naturally handles line breaks. Use the rows attribute for starting height, and CSS min-height for a baseline.

0 / 500

Auto-resize tip: pure HTML/CSS can't grow <textarea> with content. For that, add ~10 lines of JS that set style.height = scrollHeight + 'px' on input. The CSS here sets a sensible min-height baseline.