成人免费在线观看视频-国产绿帽子多p交换视频-精品国产一区av-免费xx视频-人妻熟妇乱又伦精品视频中文字幕-特级毛片内射www无码

DIV里純css3實現的超炫checkbox復選框和radio單選框

2016/8/25 9:06:04   閱讀:1565    發布者:1565

之前為大家分享了一些css3實現的按鈕。今天要為大家分享的是純css3實現的checkbox復選框和radio單選框,效果超級炫。先讓我們看看圖吧!

 

這個實例完全由css3實現的沒有任何js代碼。下面我們一起看下實現代碼吧

html代碼:


 <div style="width:200px; float:left"> 
            <label> 
                <input type="checkbox" class="option-input checkbox" checked=""> 
                Checkbox 
            </label> 
            <label> 
                <input type="checkbox" class="option-input checkbox"> 
                Checkbox 
            </label> 
            <label> 
                <input type="checkbox" class="option-input checkbox"> 
                Checkbox 
            </label> 
        </div> 
        <div style="width:200px; float:left"> 
            <label> 
                <input type="radio" class="option-input radio" name="example"> 
                Radio option 
            </label> 
            <label> 
                <input type="radio" class="option-input radio" name="example"> 
                Radio option 
            </label> 
            <label> 
                <input type="radio" class="option-input radio" name="example"> 
                Radio option 
            </label> 
        </div>


css3代碼:


@-webkit-keyframes click-wave { 
  0% { 
    width: 40px; 
    height: 40px; 
    opacity: 0.35; 
    position: relative; 
  } 
  100% { 
    width: 200px; 
    height: 200px; 
    margin-left: -80px; 
    margin-top: -80px; 
    opacity: 0.0; 
  } 
} 
@-moz-keyframes click-wave { 
  0% { 
    width: 40px; 
    height: 40px; 
    opacity: 0.35; 
    position: relative; 
  } 
  100% { 
    width: 200px; 
    height: 200px; 
    margin-left: -80px; 
    margin-top: -80px; 
    opacity: 0.0; 
  } 
} 
@-o-keyframes click-wave { 
  0% { 
    width: 40px; 
    height: 40px; 
    opacity: 0.35; 
    position: relative; 
  } 
  100% { 
    width: 200px; 
    height: 200px; 
    margin-left: -80px; 
    margin-top: -80px; 
    opacity: 0.0; 
  } 
} 
@keyframes click-wave { 
  0% { 
    width: 40px; 
    height: 40px; 
    opacity: 0.35; 
    position: relative; 
  } 
  100% { 
    width: 200px; 
    height: 200px; 
    margin-left: -80px; 
    margin-top: -80px; 
    opacity: 0.0; 
  } 
} 
.option-input { 
  -webkit-appearance: none; 
  -moz-appearance: none; 
  -ms-appearance: none; 
  -o-appearance: none; 
  appearance: none; 
  position: relative; 
  top: 13.33333px; 
  width: 40px; 
  height: 40px; 
  -webkit-transition: all 0.15s ease-out 0; 
  -moz-transition: all 0.15s ease-out 0; 
  transition: all 0.15s ease-out 0; 
  background: #cbd1d8; 
  border: none; 
  color: #fff; 
  cursor: pointer; 
  display: inline-block; 
  outline: none; 
  position: relative; 
  margin-right: 0.5rem; 
  z-index: 1000; 
} 
.option-input:hover { 
  background: #9faab7; 
} 
.option-input:checked { 
  background: #40e0d0; 
} 
.option-input:checked::before { 
  width: 40px; 
  height: 40px; 
  position: absolute; 
  content: ’\2716’; 
  display: inline-block; 
  font-size: 26.66667px; 
  text-align: center; 
  line-height: 40px; 
} 
.option-input:checked::after { 
  -webkit-animation: click-wave 0.65s; 
  -moz-animation: click-wave 0.65s; 
  animation: click-wave 0.65s; 
  background: #40e0d0; 
  content: ’’; 
  display: block; 
  position: relative; 
  z-index: 100; 
} 
.option-input.radio { 
  border-radius: 50%; 
} 
.option-input.radio::after { 
  border-radius: 50%; 
} 

body { 
  display: -webkit-box; 
  display: -moz-box; 
  display: box; 
  -webkit-box-orient: horizontal; 
  -moz-box-orient: horizontal; 
  box-orient: horizontal; 
  -webkit-box-pack: start; 
  -moz-box-pack: start; 
  box-pack: start; 
  -webkit-box-align: stretch; 
  -moz-box-align: stretch; 
  box-align: stretch; 
  background: #e8ebee; 
  color: #9faab7; 
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 
  text-align: center; 
} 
body div { 
  padding: 5rem; 
} 
body label { 
  display: block; 
  line-height: 40px; 
}


是不是很簡單。只要復制上面的html代碼和css代碼到頁面上。運行就可以看到效果了。趕緊試一試吧。哈哈

主站蜘蛛池模板: 伊人久久大香线蕉av仙人| 亚洲精品中国国产嫩草影院美女| 国产超碰97人人做人人爱| 日日摸天天摸人人看| 又色又爽又黄的视频网站| 亚洲国产精品嫩草影院久久| 无码一区二区三区av免费| 成人欧美一区二区三区1314| 乱码视频午夜在线观看| 色综合久久网| 日产亚洲一区二区三区| 窝窝午夜福利无码电影| 亚洲精品国产a久久久久久| 国产色系视频在线观看| 欧洲熟妇性色黄| 免费观看啪啪黄的网站| 久热这里只精品99国产6-99re视…| 四虎国产精品永久在线| 成人区人妻精品一区二区三区| 国产精品久久久影视青草| 中文字幕日本最新乱码视频| 亚洲日韩欧美在线成人| 麻豆tv入口在线看| 色狠狠一区二区三区香蕉| 国产又爽又黄又无遮挡的激情视频| 中文字幕在线播放| 亚洲sm另类一区二区三区| 成年无码av片完整版| 亚洲日韩va在线视频| 99re6在线视频精品免费| 97在线视频免费人妻| 乱女伦露脸对白在线播放| 97久久综合亚洲色hezyo| 成人免费无码精品国产电影| 在线播放免费人成毛片乱码| 成+人+网+站+免费观看| 少妇私密会所按摩到高潮呻吟| 久久精品中文字幕一区| 加勒比无码一区二区三区| 亚洲第一页综合图片自拍| 西西人体午夜视频无码|