Home > Web Front-end > Front-end Q&A > How to hide html controls

How to hide html controls

藏色散人
Release: 2021-04-12 10:50:50
Original
1804 people have browsed it

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!

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