Home  >  Article  >  Web Front-end  >  How to hide input in css

How to hide input in css

藏色散人
藏色散人Original
2021-04-19 15:01:093959browse

How to hide input in css: 1. Hide input through hidden attribute; 2. Hide input through "display:none" attribute in css; 3. Hide input through "visibility: hidden;".

How to hide input in css

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

Three ways to hide input

//隐藏不留痕迹
<input type="hidden" />
<input type="text" style="display:none" />
 
//占位隐藏,会留下空白
<input type="text" style="visibility: hidden;" />

[Recommended learning: HTML video tutorial]

The above is the detailed content of How to hide input in css. 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
Previous article:How to add shadow in cssNext article:How to add shadow in css