改为:
1,给input 标签增加 class="radio_type" style="border:none;top:0px;"
<input type="radio" name="<%=sci_id %>" value="<%=ssoi_id %>" class="radio_type" style="border:none;top:0px;" sort="<%=d %>"/>
2,在css 中增加 radio_type 样式
.radio_type{
width: 20px;
height: 20px;
appearance: none;
-webkit-appearance: none;
outline: none;
position: relative;
}
.radio_type:before{
content: '';
width: 20px;
height: 20px;
border: 1px solid #7d7d7d;
display: inline-block;
border-radius: 50%;
vertical-align: middle;
}
.radio_type:checked:before{
content: '';
width: 20px;
height: 20px;
border: 1px solid red;
background:red;
display: inline-block;
border-radius: 50%;
vertical-align: middle;
}
.radio_type:checked:after{
content: '';
width: 10px;
height:5px;
border: 2px solid white;
border-top: transparent;
border-right: transparent;
text-align: center;
display: block;
position: absolute;
top: 6px;
left:5px;
vertical-align: middle;
transform: rotate(-45deg);
}
.radio_type:checked+label{
color: red;
}