In CSS, the syntax format of the text area is "". This label defines a multi-line text input control. The text area can accommodate an unlimited amount of text. The default font of the text is a monospace font.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
The text area can hold an unlimited amount of text, and the default font for the text is a fixed-width font (usually Courier).
You can specify the size of the textarea through the cols and rows attributes, but a better way is to use the CSS height and width attributes.
Note: Use "%OD%OA" (carriage return/line feed) to separate lines of text in the text input area.
Tip: You can set the line wrapping mode in the text input area through the wrap attribute of the
Example
<textarea rows="3" cols="20"> 这里是缅甸北部,我生长的地方。欢迎来到我的世界 </textarea>
Effect:
Recommended learning:css video tutorial
The above is the detailed content of How to write css text field. For more information, please follow other related articles on the PHP Chinese website!