css radio 样式

Posted mrt-yyy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css radio 样式相关的知识,希望对你有一定的参考价值。

<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 样式的主要内容,如果未能解决你的问题,请参考以下文章

Python 操作Redis

python爬虫入门----- 阿里巴巴供应商爬虫

Python词典设置默认值小技巧

《python学习手册(第4版)》pdf

Django settings.py 的media路径设置

Python中的赋值,浅拷贝和深拷贝的区别