4

为什么这个字段显示在 IE 中?

我看过但找不到另一个这样的案例。

我正在使用隐藏属性,它仍然显示...

<input hidden="yes" value="<?php echo $sssssssss; ?>" name="ssssssssasas"></input>
4

4 回答 4

11

我会尝试hidden="yes"type="hidden".

于 2012-09-04T15:39:26.143 回答
2
<input type="hidden" value="..." name="..."></input>

以这种方式尝试

于 2012-09-04T15:39:01.783 回答
0

还有另一种选择,您可以使用它。

<div hidden> value </div> // this works in IE11

但你也可以尝试,

display:none; // set this for the variable you want to hide and you can access its value
于 2014-12-05T07:14:41.637 回答
0

你可以使用这个:

<div hidden="hidden"> value </div> // this works in IE7+ 

CSS:

[hidden] {
   display: none;
}
于 2016-10-30T11:05:27.653 回答