什么是给不同的色彩我的单选按钮以及边框颜色的最佳方法?如何风格,边框和颜色的单选按钮
我尝试使用此代码,但它似乎并没有很好地工作。
li.payment_method_bacs input[type='radio']:checked:before {
background: black !important;
content: "";
display: block;
position: relative;
top: 19px;
left: 3px;
width: 6px;
height: 6px;
border-radius: 50%;
border: 3px solid black;
}
li.payment_method_bacs input[type='radio']:checked:before {
background: black !important;
content: "";
display: block;
position: relative;
top: 19px;
left: 3px;
width: 6px;
height: 6px;
border-radius: 50%;
border: 3px solid black;
}
<input id="payment_method_bacs" type="radio" class="input-radio" name="payment_method" value="bacs" data-order_button_text="" checked="checked">
你可以通过这个链接希望它可能会有所帮助“http://www.tutorialrepublic.com/codelab.php?topic=faq&file=custom-radio-buttons “如果使用自举的主题也可能是远容易,因为它提供了这个功能already.As它避免了太多的这样的小要求的代码写入所以我喜欢举的主题代替的功能编写代码。 –