10
我给出了单选按钮的bg图像。它使用chrome而不是mozilla。单选按钮背景图片
这里是我的代码
<div class="fieldlist">
<label for="shipadd2">
<input type="radio" id="shipadd2" name="address" />
<div class="compacttext"> Lorem ipsum </div>
</label>
</div>
CSS是
.fieldlist input[type="radio"] {
float: right;
-webkit-appearance: none;
border: none;
width: 25px;
height: 25px;
background: url(images/radio.png) left center no-repeat;
background-size: 20px;
}
.fieldlist input[type="radio"]:checked {
background: url(images/radio_checked.png) left center no-repeat;
}
请评价乌尔问题和它们标记为答案,如果它帮助你在你的问题。 – uday
你可以在http://jsfiddle.net中创建一个例子,以便更好地理解 – sandeep