<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

      純CSS實(shí)現(xiàn)3D按鈕效果

      2016/12/20 8:34:24   閱讀:1736    發(fā)布者:1736

      今天分享一個(gè)用純CSS實(shí)現(xiàn)的3D按鈕。
      css巧妙利用了box-shadow來實(shí)現(xiàn)3D物體的立體感,
      當(dāng)按鈕按下的時(shí)候再去修改box-shadow和top值。

      讓人感覺有一種按鈕被按下的感覺。css代碼非常少,如下所示

      a.css-3d-btn{ 
       position: relative; 
       color: rgba(255, 255, 255, 1); 
       text-decoration: none; 
       background-color: rgba(219, 87, 51, 1); 
       font-family: "Microsoft YaHei", 微軟雅黑, 宋體; 
       font-weight: 700; 
       font-size: 3em; 
       display: block; 
       padding: 4px; 
       border-radius: 8px; 
       /* let’s use box shadows to make the button look more 3-dimensional */ 
       box-shadow: 0px 9px 0px rgba(219, 31, 5, 1), 0px 9px 25px rgba(0, 0, 0, .7); 
       margin: 100px auto; 
       width: 160px; 
       text-align: center; 
       -webkit-transition: all .1s ease; 
       -moz-transition: all .1s ease; 
       transition: all .1s ease; 
      } 
      
      /* now if we make the box shadows smaller when the button 
      is clicked, it’ll look like the button has been "pushed"
      */ a.css-3d-btn:active{ box-shadow: 0px 3px 0px rgba(219, 31, 5, 1), 0px 3px 6px rgba(0, 0, 0, .9); position: relative; top: 6px; }

       

      亚洲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>

        • 定陶县| 巴中市| 双城市| 区。| 铜陵市| 化州市| 揭东县| 读书| 新和县| 平远县| 西华县| 伊金霍洛旗| 方城县| 汽车| 南江县| 大港区| 中卫市| 台中市| 宁都县| 新巴尔虎右旗| 和田县| 兴宁市| 阳曲县| 隆回县| 博湖县| 溧水县| 图木舒克市| 天水市| 怀仁县| 东源县| 奉贤区| 吕梁市| 灵石县| 清新县| 红桥区| 瓦房店市| 广元市| 安新县| 海门市| 嵊泗县| 余江县|