Why is this field being displayed in IE?
为什么这个字段显示在IE中?
I've look but could not find another case of this.
我已经找过了,但找不到这种情况。
I am using the hidden attribute and it is still showing up...
我正在使用隐藏属性,它还在显示……
<input hidden="yes" value="<?php echo $sssssssss; ?>" name="ssssssssasas"></input>
4 个解决方案
#1
11
I'd try replacing hidden="yes"
with type="hidden"
.
我尝试用type="hidden"替换hidden="yes"。
#2
2
<input type="hidden" value="..." name="..."></input>
Try in this way
试试以这种方式
#3
0
there is another choice and you can use this.
还有另一个选择,你可以使用它。
<div hidden> value </div> // this works in IE11
but also you can try,
但你也可以尝试,
display:none; // set this for the variable you want to hide and you can access its value
#4
0
You can use this:
您可以使用:
<div hidden="hidden"> value </div> // this works in IE7+
CSS:
CSS:
[hidden] {
display: none;
}
#1
11
I'd try replacing hidden="yes"
with type="hidden"
.
我尝试用type="hidden"替换hidden="yes"。
#2
2
<input type="hidden" value="..." name="..."></input>
Try in this way
试试以这种方式
#3
0
there is another choice and you can use this.
还有另一个选择,你可以使用它。
<div hidden> value </div> // this works in IE11
but also you can try,
但你也可以尝试,
display:none; // set this for the variable you want to hide and you can access its value
#4
0
You can use this:
您可以使用:
<div hidden="hidden"> value </div> // this works in IE7+
CSS:
CSS:
[hidden] {
display: none;
}