Why checked property in css is not working in IE-7

2019-03-03 13:37发布

问题:

I am using some thing like this in css

input[type=radio]:checked + label { color:#121212 }

the problem is this the checked property is not working in Internet-Explorer-8 and 7.

ifI use like this

input[type=radio] + label { color:$888888 }

its working properly

Please tell me alternate of this

回答1:

You can use http://selectivizr.com/ JS. It's support css3 selector in older version of IE.



回答2:

The pseudo-class :checked is not supported in IE 7.

http://reference.sitepoint.com/css/pseudoclass-checked



回答3:

That is a pseudo-class. pseudo-class is currently not supported in Internet Explorer.