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

微笑、不失礼 提交于 2019-12-04 06:02:04

问题


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.



来源:https://stackoverflow.com/questions/10927129/why-checked-property-in-css-is-not-working-in-ie-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!