登录页面-1

2021-11-23  本文已影响0人  xueyueshuai
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>登录页面</title>
</head>

<body>

  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    .loginPageDiv {
      background: #fff;
      color: #6c757d;
      font-size: 0.28rem;
      width: 7.5rem;
      height: 100vh;
      margin: 0 auto;

      display: flex;
      justify-content: center;
      align-items: center;
    }

    .loginPageDiv .centerDiv {
      width: 6.6rem;
    }

    .loginPageDiv .centerDiv .title-div {
      font-size: 0.4rem;
      font-weight: bold;
      color: #212529e1;
      margin-bottom: 0.8rem;
      text-align: center;
    }

    .loginPageDiv .centerDiv .row-box {
      width: 6.6rem;
      height: 0.76rem;
      border: 0.01rem solid rgba(0, 0, 0, 0.1);
      margin-bottom: 0.32rem;

      display: flex;
      justify-content: space-between;
      align-items: center;
      border-radius: 0.08rem;
      overflow: hidden;
    }

    .loginPageDiv .centerDiv .row-box .row-box-icon {
      width: 1.04rem;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .loginPageDiv .centerDiv .row-box input {
      font-size: 0.28rem;

      color: #495057;
      width: 5.54rem;
      height: 100%;
      outline: none;
      box-sizing: 0;
      padding: 0.2rem;
      border: 0;
    }


    .loginPageDiv .centerDiv .loginBtn {
      width: 6.6rem;
      height: 0.76rem;
      text-align: center;
      line-height: 0.76rem;
      background: #28a745;
      border-radius: 0.08rem;
      color: #fff;
      font-size: 0.32rem;

      margin-top: 0.6rem;
      margin-bottom: 0.6rem;
      cursor: pointer;

    }
    .loginPageDiv .centerDiv .loginBtn:hover {
      opacity: 0.8;
    }

    .loginPageDiv .centerDiv .other-box {
      font-size: 0.28rem;

      text-align: right;

      width: 6.6rem;
      height: 0.72rem;
      line-height: 0.72rem;
    }
  </style>
  <div class="loginPageDiv">
    <div class="centerDiv" v-show="show">
      <div class="title-div">欢迎使用 ZXD-产品</div>
      <div class="row-box">
        <div class="row-box-icon">+86</div>
        <input type="text" placeholder="输入账号" />
      </div>

      <div class="row-box">
        <div class="row-box-icon">密码</div>
        <input type="text" placeholder="输入密码" />
      </div>

      <div class="loginBtn">登录</div>

      <div class="other-box">
        <span> 注册 </span>
        &nbsp; &nbsp; &nbsp;
        <span> 忘记密码 </span>
      </div>
    </div>
  </div>

  <script>
    /*获取标签元素<html>*/
    let html = document.getElementsByTagName("html")[0];
    html.style.fontSize = 50 + "px";
  </script>
</body>

</html>
上一篇 下一篇

猜你喜欢

热点阅读