<strike id="3tkic"><sup id="3tkic"></sup></strike>

  1. <ul id="3tkic"></ul>
      <b id="3tkic"><legend id="3tkic"></legend></b>
      <b id="3tkic"><meter id="3tkic"></meter></b>

    • <strike id="3tkic"></strike>

      <blockquote id="3tkic"></blockquote>

    • 亚洲AV无码国产在丝袜线观看_亚洲第一页A∨在线_亚洲国产人成在线观看69网站_无码日韩人妻AV一区免费l

      DIV里純css3實現(xiàn)的超炫checkbox復(fù)選框和radio單選框

      2016/8/25 9:06:04   閱讀:1518    發(fā)布者:1518

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

       

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

      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; 
      }


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

      亚洲AV无码国产在丝袜线观看_亚洲第一页A∨在线_亚洲国产人成在线观看69网站_无码日韩人妻AV一区免费l
      <strike id="3tkic"><sup id="3tkic"></sup></strike>

      1. <ul id="3tkic"></ul>
          <b id="3tkic"><legend id="3tkic"></legend></b>
          <b id="3tkic"><meter id="3tkic"></meter></b>

        • <strike id="3tkic"></strike>

          <blockquote id="3tkic"></blockquote>

        • 泽州县| 闻喜县| 夏邑县| 肇庆市| 库车县| 阿瓦提县| 屏东县| 乐业县| 太仓市| 大同市| 夏邑县| 白玉县| 灵璧县| 祁门县| 老河口市| 渭南市| 营口市| 桂林市| 分宜县| 长宁县| 崇明县| 长寿区| 漾濞| 两当县| 修水县| 翼城县| 酉阳| 同心县| 红桥区| 西林县| 隆化县| 娄烦县| 探索| 伊金霍洛旗| 章丘市| 大理市| 香港| 葵青区| 巴林左旗| 万荣县| 高邮市|