Css 选择所选单选按钮的包含div
使用以下标记:Css 选择所选单选按钮的包含div,css,css-selectors,Css,Css Selectors,使用以下标记: <div class="paymentOption"> <input type="radio" name="paymentOption" value="1" /> <span class="marginLeft10">1-time payment using a different credit card</span> </div> 使用不同的信用卡一次性付款 仅使用CSS,如何选择包含选定单选按钮
<div class="paymentOption">
<input type="radio" name="paymentOption" value="1" />
<span class="marginLeft10">1-time payment using a different credit card</span>
</div>
使用不同的信用卡一次性付款
仅使用CSS,如何选择包含选定单选按钮的div?(这可能吗?这在CSS中目前是不可能的。但您可以使用jQuery: