How to write css text field

醉折花枝作酒筹
Release: 2023-01-07 11:45:21
Original
3914 people have browsed it

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.

How to write css text field

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>
Copy after login

Effect:

How to write css text field

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!