English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
HTML: <textarea> wrap-Eigenschaft definiert, wie der Text im Textbereich bei der Formularübergabe umgebrochen wird, Online-Beispiel zeigt die Verwendung der <textarea> wrap-Eigenschaft, die Kompatibilität des Browsers, die Syntaxdefinition und detaillierte Informationen zu seinen Eigenschaftswerten.
Wenn das Formular eingereicht wird, enthält der Textbereich mit wrap = "hard" Zeilenumbrüche (falls vorhanden):
<textarea rows="4" cols="30" wrap="hard"> oldtoolbag.com Basic Tutorial Website provides various basic web technology tutorials. </textarea>Test and see ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the wrap attribute.
The wrap attribute specifies how the text in the text area is wrapped when the form is submitted.
The wrap attribute is an HTML5 The new attribute of the <textarea> tag in HTML.
<textarea wrap="soft|hard">
Value | Description |
---|---|
soft | When submitting a form, the text in the textarea is not wrapped. Default. |
hard | When submitting a form, the text in the textarea is wrapped (including newline characters). When using "hard", the cols attribute must be specified. |