我正在尝试更改所选项目的背景颜色,但无法正常工作。
HTML:
<table class="select_payment_method_table">
<tr>
<td class="payment_details_cc">
<input id="visa1" type="radio" name="visa1" value="a1" checked="checked"/>
<span class="visa_card_img"> Credit Card (VISA / MasterCard)</span>
<div class="clearfix"></div>
<div class="payment_img_main"><img src="image.png"></div>
</td>
</tr>
我试过这个,但它不起作用:
CSS:
.select input[checked]
{
background-color:white;
}