Home>Article>Web Front-end> How to hide text box in html

How to hide text box in html

青灯夜游
青灯夜游 Original
2021-05-14 14:27:24 11000browse

htmlHow to hide the text box: 1. Set the value of the input text box type attribute to "hidden"; 2. Add the "display:none" style to the text box; 3. Add "visibility" to the text box :hidden" style; 4. Set the width and height of the text box to 0.

How to hide text box in html

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

Four ways to hide text boxes in HTML

Method 1:

Works on all text boxes (hidden fields, mostly used for Store data)

Method 2:

After the object is hidden, the object does not occupy any space

Method 3:

After the object is hidden, there are Occupying the corresponding space

Method 4:

Recommended tutorial: "html video tutorial"

The above is the detailed content of How to hide text box in html. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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