html - 单选按钮在 Internet Explorer 中不起作用/不可选择

标签 html css internet-explorer radio-button

我有几个单选按钮,它们在 Chrome、Firefox 和 Safari 中工作得很好,但在使用 Internet Explorer(版本 7)时它们就是不可选择的。有什么办法可以解决这个问题吗?

HTML:

<label>
    <input type="radio" name="12" value="1">
    <span>12</span>
</label>

CSS:

label input[type=radio]{ position: absolute; top: -20px; }
input[type=radio]:checked + span{ color: #fff; background: #8dc63f; }

最佳答案

CSS 2.1 选择器 + 在 IE 7 中不可用

http://caniuse.com/#feat=css-sel2

关于html - 单选按钮在 Internet Explorer 中不起作用/不可选择,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18722436/

相关文章:

html - Outlook 2013 忽略字体系列

css - 带有渐变的英雄 using::before 无法正常工作

javascript - 获取图像相对于父级的位置,考虑垂直偏移

jQuery IE 追加 ul 不会应用 css 样式

c++ - 什么情况下 Internet Explorer 无法正确卸载 ActiveX 控件?

javascript - 我可以强制 iPad 仅在横向模式下显示网站吗?

html - 使用angular6显示多个嵌套数据

javascript - onclick 事件需要两次点击,新的 flex 元素溢出行

jquery - Opera 和 IE 中的 CSS 动画

internet-explorer - 这是对微软关于支持 IE6 的声明的正确解释吗?