首页 > Web开发 > 详细

纯css radio button样式

时间:2020-05-25 15:11:39      阅读:123      评论:0      收藏:0      [点我收藏+]
 <div class="inRadio RadioStyle">
                  <input type="radio" checked onclick="editWareHouseIt(this)" id="editOrInsHouse01"
                     name="editOrInsHouse" value="01">
                  <label for="editOrInsHouse01">按钮一</label>
                  <input type="radio" onclick="editWareHouseIt(this)" id="editOrInsHouse02" name="editOrInsHouse"
                     value="02">
                  <label for="editOrInsHouse02">按钮二</label>
               </div>
.RadioStyle input {
  display: none
}

.RadioStyle label {
  border: 1px solid #00a4ff;
  color: #fff;
  line-height: 28px;
  min-width: 80px;
  text-align: center;
  float: left;
  font-size: 10px;
  border-radius: 4px
}

.RadioStyle input:checked+label {
  border: 1px solid #00a4ff;
  background-size: 21px 21px;
  color: #fff;
  background-color: #00a4ff;
}

.RadioStyle input:disabled+label {
  opacity: 0.7;
}

 

纯css radio button样式

原文:https://www.cnblogs.com/goPush/p/12956454.html

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