<input> 标签换行

Wrap line of <input> tag

我想在 <input> 标签中包装一些文本。当我使用 word-wrap: break-word 时,它不起作用。

由于 specification,无法在输入字段中换行:

Text with no line breaks

相反,您将不得不使用 <textarea>(因为它是用于换行的文本输入元素),例如:

<textarea rows="10" cols="30"></textarea>