拉钩网前端项目实战06

拉钩网前端项目实战

拉钩网前端项目实战06

登录注册部分设计

一、登录注册部分设计

1.html部分

 <div class="header"></div>
    <div class="boxCon">
        <div class="logo"></div>
        <form action="#" method="get">
            <div class="forBox">
                <div class="imgBox clearFixed">
                    <img class="fl" src="img2/qrcode-normal.svg" alt="" />
                    <img class="fl" src="img2/wx-login.svg" alt="" />
                </div>
                <div class="inpLeft fl">
                    <div class="line1">
                        <p class="txtP1 fl btnWhit">密码登录</p>
                        <p class="txtP2 fl">验证码登录</p>
                    </div>
                    <div class="lineInp">
                        <input type="text" placeholder="请输入常用手机号或邮箱">
                    </div>
                    <div class="lineInp">
                        <input type="password" placeholder="请输入密码">
                    </div>
                    <p class="txt">忘记密码?</p>
                    <input type="submit" value="登录">
                    <span class="or">or</span>
                </div>
                <div class="inpRight fl">
                    <div class="txt1">还没有账号</div>
                    <div class="txt2">立即注册<img src="img2/icon-arrow-right.png" alt="" /></div>
                    <div class="txt3">
                        <p>使用以下方式直接登录</p>
                        <img src="img2/icon-sina1.png" alt="" class="fl">
                        <img src="img2/icon-wechat.png" alt="" class="fl">
                        <img src="img2/icon-tencent.png" alt="" class="fl">
                        <img src="img2/icon-baidu.png" alt="" class="fl">
                    </div>
                </div>
            </div>
        </form>
    </div>

2.css部分

* {
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
}
li {
  list-style: none;
}
img {
  display: block;
}
input {
  border: none;
}
.clearFixed::after {
  content: '';
  display: block;
  clear: both;
}

.fl {
  float: left;
}

.fr {
  float: right;
}

.btnWhit:after {
  content: '';
  display: block;
  position: absolute;
  border: 10px solid transparent;
  border-bottom-color: #fff;
  left: 50%;
  margin-left: -10px;
  bottom: -4px;
}

.btnWhit:before {
  content: '';
  display: block;
  position: absolute;
  border: 10px solid transparent;
  border-bottom-color: #00b38a;
  left: 50%;
  margin-left: -10px;
  bottom: 0px;
}

body {
  background: #f8f9fc;
}
.header {
  height: 360px;
  background: #00b38a;
}

.boxCon {
  position: absolute;
  top: 77px;
  left: 50%;
  margin-left: -325px;
  width: 700px;
  height: 490px;

  .logo {
    height: 77px;
    background: url('img2/logo.png') no-repeat;
  }
  .forBox {
    height: 400px;
    border: 1px solid #dce1e6;
    padding: 6px;
    background: #fff;
    .imgBox {
      img {
        margin-left: 6px;
      }
      img:nth-child(2) {
        margin-top: -5px;
      }
    }
    .inpLeft {
      position: relative;
      width: 290px;
      height: 277px;
      padding: 0px 63px;
      border-right: 1px dashed #555;
      .or {
        position: absolute;
        width: 18px;
        height: 18px;
        right: -8px;
        top: 50%;
        margin-top: -9px;
        background: #fff;
        text-align: center;
        color: #555;
      }
      .line1 {
        height: 40px;
        border-bottom: 1 px solid #555;
        font-size: 18px;
        color: #555;
        line-height: 40px;
        p {
          width: 145px;
          text-align: center;
          position: relative;
        }
        p:nth-child(1) {
          color: #00b38a;
          border-bottom: 1px solid #00b38a;
        }
      }

      .lineInp {
        input {
          width: 100%;
          height: 44px;
          padding-top: 20px;
        }
      }
      .txt {
        color: #00b38a;
        height: 58px;
        line-height: 58px;
        font-size: 12px;
        text-align: right;
      }
      input[type='submit'] {
        height: 48px;
        width: 100%;
        background: #00b38a;
        color: #fff;
        text-align: center;
        line-height: 48px;
        font-size: 18px;
      }
    }
    .inpRight {
      padding-left: 52px;
      color: #555;
      font-size: 14px;
      padding-top: 80px;
      .txt2 {
        font-size: 16px;
        color: #00b38a;
        margin-bottom: 44px;
        height: 33px;
        line-height: 33px;
        img {
          display: inline-block;
          margin-left: 3px;
          vertical-align: middle;
        }
      }
      .txt3 {
        img {
          margin-right: 24px;
          margin-top: 10px;
        }
      }
    }
  }
}

3.登录注册切换边框设计

在这里插入图片描述
在这里插入图片描述

二、结果设计图

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值