不显示radio标签:function,color,前端,radio,background,f8fbf9,圆圈,css From: https://blog.51cto.com/u_15862653/5828370
input[type="radio"]{ position: absolute; left:-999em;}
切换样式
<script type="text/javascript">
$(document).ready(function(){
$('label').click(function(){
if($(this).children('input').is(":checked")){
$(this).css('background-color','#f7edb8');
$(this).nextAll().css('background-color','#f8fbf9');
$(this).prevAll().css('background-color','#f8fbf9');
}
})
})
</script>
html5
<label class="item" ><input name="opption1" type="checkbox" /><span>先生</span> </label>
<label class="item"><input name="opption1" type="checkbox" /><span>女士</span> </label>