有什么办法可以在 IE 中完成这项工作?我正在尝试设计一项调查,但它在 IE6 中不起作用,悬停在上面很好,但检查只是不起作用
CSS:
.A label {
display:inline-block;
background-color:#F36;
padding:4px 11px;
font-family:Arial;
font-size:16px;
width:775px;
text-align:center;
margin-left:auto;
margin-right:auto;
}
.A label:hover{
background-color: #C36;
}
.A input[type="radio"]:checked + label {
background-color: #C36;
}
html:
<div class="A">
<input type="radio" name="price" value="1" id="1PR" checked="checked" /><label for="1PR">£0-2</label><br />
<input type="radio" name="price" value="2" id="2PR" /><label for="2PR">£3-£5</label><br />
<input type="radio" name="price" value="3" id="3PR" /><label for="3PR">£6-£8</label><br />
<input type="radio" name="price" value="4" id="4PR" /><label for="4PR">£9-£11</label><br />
<input type="radio" name="price" value="5" id="5PR" /><label for="5PR">£12-£14</label>
</div>