首页 > Web开发 > 详细

css radio 样式

时间:2019-09-14 00:14:50      阅读:206      评论:0      收藏:0      [点我收藏+]

<div class="flex-h input">
<label>
<span class="musticon" style="color:#fff">*</span> 语言表达能力
</label>
<div class="flex-1 tx-r radio">
<input type="radio" name="n" id="n1" class="" />
<label for="n1" class="">

</label>
<input type="radio" name="n" id="n2" class="" />
<label for="n2" class="">

</label>
<input type="radio" name="n" id="n3" class="" />
<label for="n3" class="">

</label>
</div>


</div>

 

 


.input div.radio label{
position: relative;
display: inline-block;
padding-left:15px;
}
.input div.radio input{
display: none;
}
.input div.radio label::before {
content: ‘‘;
position: absolute;
top: 50%;
left: 0;
transform: translate(0, -50%);
width:10px;
height:10px;
border:1px solid #9D9D9D;
border-radius: 100%;
}

.input div.radio input + label::before {
border:1px solid #FF9200;
}

.input div.radio input:checked + label::after {
content: ‘‘;
position: absolute;
top: 50%;
left:2px;
transform: translate(0, -50%);
width:6px;
height:6px;
border-radius: 100%;
background: #FF9200;
}

css radio 样式

原文:https://www.cnblogs.com/mrt-yyy/p/11517988.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!