整合營銷服務商

          電腦端+手機端+微信端=數據同步管理

          免費咨詢熱線:

          Html5第四天練習

          Html5第四天練習

          tml:

          <!DOCTYPE html>
          <html lang="en">
              <head>
                  <meta charset="UTF-8"/>
                  <meta http-equiv="X-UA-Compatible" content="IE-edge">
                  <meta name="viewport" content="width=device-width, initial-scale=1.0">
                  <title>按鈕效果</title>
                  <link href="../css/20240309.css" rel="stylesheet">
                  
              </head>
          <body>
              <button class="login">
                  <p>LOGIN</p>
                  <!---->
                  <div class="loading">
                      <div></div>
                      <div></div>
                      <div></div>
                  </div>
                  <svg class="checkmark" width="30px" height="30px" stroke="white" fill="none">
                      <polyline points="2,10 12,18 28,2"></polyline>
                  </svg>
              
              </button>
          </body>
          <script src="../js/jquery-3.7.1.js"></script>
          <script>
                  $('.login').click(function(){
                          $(this).toggleClass('active');
                          setTimeout(
                              ()=> {
                                  $(this).toggleClass('verity');
                              },2000
                          )
                      }
                  )
          </script>
          </html>

          Css:

          tml:

          <!DOCTYPE html>
          <html lang="en">
          <head>
              <meta charset="UTF-8">
              <meta name="viewport" content="width=device-width, initial-scale=1.0">
              <title>登錄界面</title>
              <link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
              <link href="../css/20240331.css" rel="stylesheet">
          </head>
          <body>
              <form action="#" class="login-form">
                  <h1 class="login-title">Login</h1>
                  <div class="input-box">
                      <i class="bx bxs-user"></i>
                      <input type="text" placeholder="Username">
                  </div>
          
                  <div class="input-box">
                      <i class="bx bxs-lock-alt"></i>
                      <input type="password" placeholder="Password">
                  </div>
          
                  <div class="remember-forgot-box">
                      <label for="remember">
                          <input type="checkbox" id="remember">
                          Remember me
                      </label>
                      <a href="#">Forgot password?</a>
                  </div>
          
                  <button class="login-btn">Login</button>
                  <p class="register">
                      Don't hava an account?<a href="#">Register</a>
                  </p>
              </form>
          </body>
          </html>

          Css:

          
          @import url(https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap);
          
          *{
              margin: 0;
              padding: 0;
              box-sizing: border-box;
              font-family: 'Pooppins', sans-serif;
          }
          
          body {
              min-height: 100vh;
              display: flex;
              align-items: center;
              justify-content: center;
              background-image: url(../html/image/20240331/login_bg3.jpg);
              background-size: cover;
              background-position: center;
          }
          
          .login-form {
              background: rgba(64, 64, 64, 0.15);
              border: 3px solid rgba(255, 255, 255, 0.3);
              padding: 30px;
              border-radius: 16px;
              backdrop-filter: blur(25px);
              text-align: center;
              color: #fff;
              width: 400px;
              box-shadow: 0px 0px 20px 10px rgba(0, 0, 0, 0.15);
          }
          
          .login-title {
              font-size: 40px;
              margin-bottom: 40px;
          }
          
          .input-box {
             margin: 20px 0;
              position: relative;
          }
          
          .input-box input{
              width: 100%;
              background: rgba(255, 255, 255, 0.1);
              border: none;
              padding: 12px 12px 12px 45px;
              border-radius: 99px;
              outline: 3px solid transparent;
              transition: 0.3s;
              font-size: 17px;
              color: #fff;
              font-weight: 600;
          }
          
          .input-box input::placeholder{
              color: rgba(255, 255, 255, 0.8);
              font-size: 17px;
              font-weight: 700;
          }
          
          .input-box input:focus{
              outline: 3px solid rgba(255, 255, 255, 0.3)
          }
          
          .input-box input::-ms-reveal{
              filter: invert(100%);
          }
          
          .input-box i {
              position: absolute;
              left: 15px;
              top: 50%;
              transform: translateY(-50%);
              font-size: 20px;
              color: rgba(255, 255, 255, 0.8);
          }
          
          .remember-forgot-box{
              display: flex;
              justify-content: space-between;
              margin: 20px 0;
              font-size: 15px;
          }
          
          .remember-forgot-box label{
              display: flex;
              gap: 8px;
              cursor: pointer;
          
          }
          
          .remember-forgot-box input{
              accent-color: #fff;
              cursor: pointer;
          }
          
          .remember-forgot-box a {
              color: #fff;
              text-decoration: none;
          }
          
          .remember-forgot-box a:hover{
              text-decoration: underline;
          }
          
          .login-btn{
              width: 100%;
              padding: 10px 0;
              background: #2f9cf4;
              border: none;
              border-radius: 99px;
              color: #fff;
              font-size: 16px;
              font-weight: 600;
              cursor: pointer;
              transition: 0.3s;
          }
          
          .login-btn:hover{
              background: #0b87ec;
          }
          
          .register{
              margin-top: 15px;
              font-size: 15px;
          
          }
          
          .register a{
              color: #fff;
              text-decoration: none;
              font-weight: 500;
          }
          
          .register a:hover{
              text-decoration: underline;
          }
          
          
          
          
          
          
          

          效果:

          日服務器被wallet病毒侵害了,水猿忙的可是不可開交。今日就附上水猿平常寫HTML頁面都會用的一段兼容性css代碼。保證在各瀏覽器中都可以保持一致。

          body,div,ul,li,a,ol,dl,dt,dd,p,h1,h2,h3,h4,h5,h6,form,input,span,label,b{margin:0;padding:0}

          li{list-style:none}

          a{text-decoration:none}

          img,input{border:none}

          a,input{outline:none}

          textarea{resize:none}

          h1,h2,h3,h4,h5{font-style: normal}

          i,em{font-style: normal}

          .clearfix:after{content: "";display: block;height: 0;clear: both}


          主站蜘蛛池模板: 日本一区二三区好的精华液| 久久亚洲国产精品一区二区| 免费一区二区三区在线视频| 久久国产视频一区| 国产在线精品一区二区| 日韩免费无码视频一区二区三区 | 亚洲AV无码一区二区三区在线| 亚洲蜜芽在线精品一区| 国产婷婷一区二区三区| 天美传媒一区二区三区| 视频一区二区三区免费观看 | 国产精品无码一区二区三级 | 无码国产精品一区二区免费模式| 日本一区频道在线视频| 人妻夜夜爽天天爽爽一区| 少妇无码AV无码一区| 日韩精品人妻一区二区中文八零| 亚洲国产成人久久一区WWW| 亚洲一区二区三区免费在线观看| 麻豆AV无码精品一区二区 | 日韩精品视频一区二区三区| 无码日韩AV一区二区三区| 国产福利无码一区在线| 国产一区二区三区在线| 日本一区午夜艳熟免费| 中文人妻av高清一区二区| 国产亚洲一区二区三区在线观看 | 99精品国产高清一区二区| 日本欧洲视频一区| 精品成人av一区二区三区| 精品深夜AV无码一区二区老年| tom影院亚洲国产一区二区| 国产精品区一区二区三| 亚洲一本一道一区二区三区| 美女视频一区三区网站在线观看| 亚洲性日韩精品国产一区二区| 色一乱一伦一区一直爽| asmr国产一区在线| 国产成人精品无人区一区 | 男女久久久国产一区二区三区| 久99精品视频在线观看婷亚洲片国产一区一级在线 |