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