body{background: gray;}
#con{
height: 50px;
width: 230px;
padding: 20px;
margin: 50px auto;
}
#con .man{
width: 50px;
height: 50px;
float: left;
border-radius: 100%;
background:orange;
position: relative;
margin-left: 20px;
}
#con input{
position: absolute;/*去掉这个的话,按钮就失灵了,这是为什么呢??*/
opacity: 0;
width: 100%;
height: 100%;
z-index:100;
}
#con .wom{
width: 50px;
height: 50px;
float: left;
margin-left: 30px;
border-radius: 100%;
background: orange;
position: relative;
}
#con label{
display: block;
float: left;
font-size: 24px;
font-weight: bold;
font-family: 微软雅黑;
margin-left: 10px;
margin-top: 10px;
}
#con span{
width: 25px;
height: 25px;
display: block;
position: absolute;
top:10px;
left: 10px;
background: yellow;
border-radius: 100%;
}
input[type="radio"]+span{
opacity: 0;
}
input[type="radio"]:checked+span{
opacity: 1;
}
男
女