我有以下的单选按钮,我需要更大的圆圈是38px用CSS 3花哨的单选按钮对齐标签
input[type=radio] {
visibility: hidden;
}
.label {
font-weight: normal;
color: #333;
}
.label::before {
content: '';
position: absolute;
left: 0;
width: 38px;
height: 38px;
border: 1px solid #727272;
border-radius: 50%;
}
input[type=radio]:checked+label:after {
content: '';
position: absolute;
width: 38px;
height: 38px;
left: 0;
background: #0065bd;
border: none;
transform: scale(0.5);
border-radius: 50%;
}
<div class="container">
<input type="radio" id="radio1" value="on">
<label for="radio1" class="label">Yes</label>
</div>
这里是一个fiddle,我该如何调整标签所以它与中心对齐并推到了圆圈的右侧?
如果这些答案的人帮助解决您的问题请标明一个所接受,这样其他人同样的问题,知道哪个答案是正确的! :) –