" method; 2. Hiding through "display:none"; 3. Hiding through "visibility: hidden"."/> " method; 2. Hiding through "display:none"; 3. Hiding through "visibility: hidden".">

Home  >  Article  >  Web Front-end  >  How to hide html controls

How to hide html controls

藏色散人
藏色散人Original
2021-04-12 10:50:281770browse

How to hide the html control: 1. Hidden through the "" method; 2. Hidden through "display:none"; 3. Visibility: hidden "Achieve hiding.

How to hide html controls

The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.

Hide an html text box control:

Can be hidden

1.

2.< ;input type="text" style="display:none" />

The above two methods can hide without leaving traces.

3.

The third method can hide the placeholder (leaving a blank space without displaying it) )

[Recommended learning: HTML video tutorial]

The above is the detailed content of How to hide html controls. 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