开发者

Target a checkbox status using css

I need to display the section based on the chckbox..for that i write through css

input[typ开发者_运维知识库e = "checkbox"]:checked .sec-visible{ display : block; }

its working on ff, but not working on ie..any solution?


You have the selector a little muddled, you need to select the input with its class then the type:

input.sec-visible[type="checkbox"]:checked

Example here.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜