input[type="radio"] + label:before {
display: inline-block;
border: 1px solid #999;
border-radius: 15px;
content: "";
height: 20px;
width: 20px;
-webkit-appearance: none;
}
input[type="radio"]:checked + label:before {
background-color: #00ff00;
text-align: center;
-webkit-appearance: none;
}
當我選擇它時,單選按鈕的背景顏色不會改變。背景顏色造型不起作用
您的代碼正常工作:http://jsfiddle.net/qjuo92ex/ – dfsq