开发者

Input type hidden occupying space within IE6 & 7

开发者 https://www.devze.com 2023-02-19 10:33 出处:网络
I am using an input tag to retrieve some user information. This user information is not required to be rendered by the browser so I have give it a class with \'display: none\' applied.

I am using an input tag to retrieve some user information. This user information is not required to be rendered by the browser so I have give it a class with 'display: none' applied.

IE6 and 7 are still rendering th开发者_开发问答e space the input occupies but without rendering the content, the same way 'visibility: hidden' would work.

Are there any other ways to get IE6 and 7 to completely ignore the input?


If input hidden values are inside table then they are rendered without TR and TD; so adding them inside TR, TD and setting tr { display: none } has worked for me.


Have you tried giving the input type="hidden"?

0

精彩评论

暂无评论...
验证码 换一张
取 消