我怎样才能得到 css 伪元素 :checked 以在 IE7 + IE8 中工作?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11835999/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 04:43:26  来源:igfitidea点击:

How can I get css pseudo element :checked to work in IE7 + IE8?

cssinternet-explorer-8internet-explorer-7pseudo-element

提问by mike

I'm trying to style selected radio buttons different than non-selected radio butons in IE 7+8. I've tried selectivizer and it fixed the problem, but also created other problems with css background images being set as hidden. Does anyone know of another JS library that will fix the IE pseudo issue?

我正在尝试设置与 IE 7+8 中未选择的单选按钮不同的选定单选按钮的样式。我试过 selectivizer 并解决了这个问题,但也造成了其他问题,将 css 背景图像设置为隐藏。有谁知道另一个可以修复 IE 伪问题的 JS 库?