内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

如何實(shí)現(xiàn)超炫checkbox復(fù)選框和radio單選框-創(chuàng)新互聯(lián)

這篇文章主要講解了“如何實(shí)現(xiàn)超炫checkbox復(fù)選框和radio單選框”,文中的講解內(nèi)容簡(jiǎn)單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來(lái)研究和學(xué)習(xí)“如何實(shí)現(xiàn)超炫checkbox復(fù)選框和radio單選框”吧!

成都創(chuàng)新互聯(lián)公司專注于企業(yè)全網(wǎng)營(yíng)銷推廣、網(wǎng)站重做改版、五蓮網(wǎng)站定制設(shè)計(jì)、自適應(yīng)品牌網(wǎng)站建設(shè)、H5網(wǎng)站設(shè)計(jì)商城網(wǎng)站建設(shè)、集團(tuán)公司官網(wǎng)建設(shè)、外貿(mào)網(wǎng)站制作、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁(yè)設(shè)計(jì)等建站業(yè)務(wù),價(jià)格優(yōu)惠性價(jià)比高,為五蓮等各大城市提供網(wǎng)站開(kāi)發(fā)制作服務(wù)。

如何實(shí)現(xiàn)超炫checkbox復(fù)選框和radio單選框

這個(gè)實(shí)例完全由css3實(shí)現(xiàn)的沒(méi)有任何js代碼。下面我們一起看下實(shí)現(xiàn)代碼吧

html代碼:

代碼如下:

<div >
           <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 >
           <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%;
}</p> <p>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;
}


感謝各位的閱讀,以上就是“如何實(shí)現(xiàn)超炫checkbox復(fù)選框和radio單選框”的內(nèi)容了,經(jīng)過(guò)本文的學(xué)習(xí)后,相信大家對(duì)如何實(shí)現(xiàn)超炫checkbox復(fù)選框和radio單選框這一問(wèn)題有了更深刻的體會(huì),具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是創(chuàng)新互聯(lián)網(wǎng)站建設(shè)公司,,小編將為大家推送更多相關(guān)知識(shí)點(diǎn)的文章,歡迎關(guān)注!

文章名稱:如何實(shí)現(xiàn)超炫checkbox復(fù)選框和radio單選框-創(chuàng)新互聯(lián)
轉(zhuǎn)載注明:http://www.rwnh.cn/article10/dosodo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供營(yíng)銷型網(wǎng)站建設(shè)、微信公眾號(hào)、網(wǎng)站改版、網(wǎng)站維護(hù)、虛擬主機(jī)、商城網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

網(wǎng)站托管運(yùn)營(yíng)
台中县| 白水县| 呈贡县| 玉田县| 永泰县| 澜沧| 昭苏县| 资中县| 菏泽市| 平度市| 清远市| 息烽县| 廉江市| 怀来县| 新津县| 双鸭山市| 涡阳县| 德格县| 白山市| 新野县| 扬中市| 容城县| 南开区| 南江县| 云南省| 黄大仙区| 太康县| 贡山| 永兴县| 米易县| 五原县| 临安市| 延长县| 河北省| 侯马市| 友谊县| 斗六市| 积石山| 保靖县| 田阳县| 墨江|