htmlMethods to hide controls: 1. Hide via the "<input type="hidden" />" method; 2. Hide via the "display:none" attribute; 3. Hide via "visibility: hidden; "Property is hidden.
The operating environment of this article: Windows 7 system, HTML5 version, Dell G3 computer.
There are several ways to hide HTML controls, placeholder hiding
Hide controls in HTML, such as hiding :
First The first hiding method:
<input type="hidden" />
The second hiding method:
<input type="text" style="display:none" />
The above two methods can achieve hiding without leaving traces.
But sometimes we need to hide the control and occupy the position.
The third hiding method will be introduced below:
<input type="text" style="visibility: hidden;" />
In this way, it seems to be hidden, but in fact it still occupies the layout position.
【Recommended learning: html video tutorial】
The above is the detailed content of html hidden control method. For more information, please follow other related articles on the PHP Chinese website!