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

2019-03-03 13:14发布

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

3条回答
混吃等死
2楼-- · 2019-03-03 13:50

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

查看更多
冷血范
3楼-- · 2019-03-03 14:07

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

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

查看更多
对你真心纯属浪费
4楼-- · 2019-03-03 14:13

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

查看更多
登录 后发表回答