开发者

Target a checkbox status using css

开发者 https://www.devze.com 2023-03-31 12:24 出处:网络
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; }

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

精彩评论

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