码迷,mamicode.com
首页 > 其他好文 > 详细

记一次临摹百度登录界面

时间:2020-06-27 00:14:16      阅读:70      评论:0      收藏:0      [点我收藏+]

标签:BMI   div   :hover   ima   scale   ping   png   check   for   

html文件 index.html

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>百度登录界面</title>
    <link rel="stylesheet" type="text/css" href="css/forms.css">
    <script type="text/javascript" src="js/es6-forms.js"></script>

</head>

<body>
    <div class="form">
        <form>
            <p class="p-form-logo">用户名登录</p>
            <p class="p-userErro p-passErro"></p>
            <div class="div-form-userName">
                <input id="inputU" type="text" class="text-userName" placeholder="账号/手机" />
            </div>
            <div class="div-form-passWord">
                <input id="inputP" type="password" class="text-passWord" placeholder="密码" />
            </div>
            <div class="div-checkbox">
                <input type="checkbox" />
                <a href="javascript:document.querySelector(‘.div-checkbox input‘).click();">下次自动登录</a>
            </div>
            <div>
                <input type="submit" value="登录" class="button-submit" />
            </div>
            <div class="div-tip01">
                <a href="#">忘记密码?</a>
            </div>
        </form>
        <div class="div-footerBar">
            <div class="footerBar1">
                <a href="#">扫码登录</a>
            </div>
            <div class="footerBar2">
                <a href="#">立即注册</a>
            </div>
        </div>
    </div>
</body>

</html>

css文件 form.css

.form {
    position: relative;
    left: 50%;
    width: 356px;
    height: 384px;
    margin-left: -178px;
    margin-top: 120px;
    border-style: solid;
    border-width: 1px;
    font-family: arial;
}

form {
    margin: 24px 28px 0 28px;
    height: 288px;
}

.p-form-logo {
    height: 32px;
    margin-top: 1px;
    margin-bottom: 15px;
    line-height: 46px;
    padding-left: 118px;
    background: url("../images/loginlogo.png") no-repeat scroll 0% 0%;
    font-size: 16px;
}

.p-userErro,
.p-passErro {
    margin-top: 8px;
    margin-bottom: 2px;
    height: 24px;
    font-size: 12px;
    line-height: 14px;
    visibility: visible;
    color: red;
}

.div-form-userName,
.div-form-passWord {
    width: 100%;
    height: 42px;
    margin-bottom: 16px;
}

.text-userName,
.text-passWord {
    outline: none;
    padding: 10px 8px 8px 10px;
    width: 283px;
    height: 20px;
    border-style: solid;
    border-width: 1px;
    border-color: rgb(221, 221, 221);
}

.text-userName:foucs {
    padding: 10px 8px 8px 10px;
    width: 283px;
    height: 20px;
    border-style: solid;
    border-width: 1px;
    border-color: rgb(72, 54, 231);
}

input:focus {
    border-color: rgb(72, 54, 231);
}

.button-submit {
    outline: none;
    width: 300px;
    height: 40px;
    border-style: none;
    border-color: white;
    border-radius: 3px;
    background: #4490f7;
}

.button-submit:hover {
    cursor: pointer;
    background-color: #4490f7;
}

input:-internal-autofill-selected {
    -webkit-appearance: menulist-button;
    background-color: rgb(232, 240, 254) !important;
    background-image: none !important;
    color: black;
}

.div-checkbox {
    margin-bottom: 10px;
}

.div-checkbox a {
    text-decoration: none;
    font-size: 12px;
    text-align: left;
    font-family: "PingFang SC", Arial, "Microsoft YaHei", sans-serif;
    color: #666666
}

.div-checkbox input {
    width: 12.8px;
    height: 12.8px;
    border: solid;
    border-width: 0.4px;
    padding: 0;
    margin: 0;
    vertical-align: middle;
}

.div-tip01 {
    margin-top: 12px;
}

.div-tip01 a {
    font-size: 12px;
    text-decoration: none;
}

.div-footerBar {
    height: 72px;
    background-color: #F0F6FF
}

.footerBar1 {
    float: left;
    width: 107px;
    margin-left: 25px;
    padding-top: 28px;
}

.div-footerBar a {
    text-decoration: none;
    font-size: 16px;
    color: #2e82ff;
}

.div-footerBar a:hover {
    opacity: 0.6;
}

.footerBar2 {
    margin-left: 200px;
    margin-right: 28px;
    padding-top: 28px;
    padding-left: 60px;
}

logo:
技术图片

效果图:

技术图片

记一次临摹百度登录界面

标签:BMI   div   :hover   ima   scale   ping   png   check   for   

原文地址:https://www.cnblogs.com/Dmail/p/13196826.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!