摘要:本篇HTML+DIV实战教程将讲解css 模拟 radio样式 ,跟着这篇文章你可以一起动手操作下。
本篇HTML+DIV实战教程将讲解css 模拟 radio样式 ,跟着这篇文章你可以一起动手操作下。
css:
.check-box {
margin: 0 10px;
cursor: pointer;
}.check-box:before {
content: '';
background: #ffffff;
display: inline-block;
width: 8px;
height: 8px;
border: 2px solid #fff;
border-radius: 100%;
cursor: pointer;
vertical-align: bottom;
}.check-box.checked:before {
background: #9ec707;
}
html:
<div style="background: #000; color: #fff; padding: 10px;">
选择操作系统:
<span class="check-box ">
CentOS
</span>
<span class="check-box checked">
Ubuntu / Debian
</span></div>
希望这篇文章可以帮助到你。总之,同学们,你想要的职坐标IT频道都能找到!
您输入的评论内容中包含违禁敏感词
我知道了
请输入正确的手机号码
请输入正确的验证码
您今天的短信下发次数太多了,明天再试试吧!
我们会在第一时间安排职业规划师联系您!
您也可以联系我们的职业规划师咨询:
版权所有 职坐标-一站式IT培训就业服务领导者 沪ICP备13042190号-4
上海海同信息科技有限公司 Copyright ©2015 www.zhizuobiao.com,All Rights Reserved.
沪公网安备 31011502005948号