Home > Web Front-end > HTML Tutorial > How to hide text boxes in HTML

How to hide text boxes in HTML

醉折花枝作酒筹
Release: 2021-04-26 11:29:15
forward
3636 people have browsed it

This article will introduce to you how to hide text boxes in HTML. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

How to hide text boxes in HTML

  1、<input type="hidden" value=""></input>//对所有的文本框都起作用(隐藏域,多用于存数据)
  2、<input type="text" value="" style="display:none"></input>//对象隐藏后,对象不占任何空间
  3、<input type="text" value="" style="visibility:hidden"></input>//对象隐藏后,还有占有相应的空间大小
  4、<input type="text" value="" style"width:0;height:0;"></input>
Copy after login

Recommended learning: html video tutorial

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

Related labels:
source:csdn.net
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