html怎么隐藏input标签

一、

1
< input  type = "hidden"  />

二、

1
< input  type = "text"  style = "display:none"  />

以上两种方法可以实现不留痕迹的隐藏。三、

1
< input  type = "text"  style = "visibility: hidden;"  />

第三种方法可以实现占位隐藏(会留下空白而不显示)

猜你喜欢

转载自blog.csdn.net/weixin_39214481/article/details/80366931