输入[类型=隐藏]和可见性=“隐藏”之间的差异。 [英] difference between input[type=hidden] and visibility="hidden"

查看:96
本文介绍了输入[类型=隐藏]和可见性=“隐藏”之间的差异。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

input [type = hidden] 和 visibility:hidden;

$之间的区别b $ b

解决方案

第一个是input元素,第二个用于CSS2中的style。

visibility:hidden; 可见性属性指定元素是否可见。

input [type = hidden] : - HIDDEN是一个TYPE属性值添加到FORM的INPUT元素。它表明一个表单域在文档中没有明显出现,并且用户不会与之交互。它可以用来传输有关客户端或服务器的状态信息。


What's the difference between input[type=hidden] and visibility : hidden; ?

解决方案

The first one is input element and the second is used for style in CSS2.

visibility: hidden; The visibility property specifies whether or not an element is visible.

input[type=hidden] :- HIDDEN is a TYPE attribute value to the INPUT element for FORMs. It indicates a form field that does not appear visibly in the document and that the user does not interact with. It can be used to transmit state information about the client or server.

这篇关于输入[类型=隐藏]和可见性=“隐藏”之间的差异。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆