day22京东登录

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>京东-欢迎登陆</title>
        <link rel="icon" type="image/ico" href="img/jd_logo.ico"/>
        <style type="text/css">
            *{
                margin: 0;
                padding: 0;
            }
        </style>
        <!-- ===========顶部样式表============= -->
        <link rel="stylesheet" type="text/css" href="css/top.css"/>
        <!-- ===========中部样式表============= -->
        <link rel="stylesheet" type="text/css" href="css/middle.css"/>
        <!-- ===========底部样式表============= -->
        <link rel="stylesheet" type="text/css" href="css/bottom.css"/>
    </head>
    <body>
        <!-- ==========网页顶部========== -->
        <div id="top">
            <div id="icon">
                <!-- 图标图片 -->
                <div id="img">
                    <a href="">
                        <img src="img/logo.jpg" >
                    </a>
                    <img src="img/l-icon.png" >
                </div>
                <div id="question">
                    <a href="">登录页面,调查问卷</a>
                </div>
                
            </div>
            <div id="privacy">
                <p><img src="img/xx.png" >&emsp;&nbsp;&nbsp;依据《网络安全法》,为保障您的账户安全和正常使用,请尽快完成手机号验证! 新版<a target="_blank" href="https://about.jd.com/privacy/">《京东隐私政策》</a>已上线,将更有利于保护您的个人隐私。</p>
            </div>
        </div>
        
        
        <!-- ==========网页中间========== -->
        <div id="middle">
            <img src="img/bgimg.png" id="bigimg">
            <div id="login-box">
                <div id="box1">
                    <div id="warning">
                        <img src="img/xx.png" >
                        <font>京东不会以任何理由要求您转账汇款,谨防诈骗。</font>
                    </div>
                    <div id="choice">
                        <button>扫码登录</button>|
                        <button>账号登录</button>
                    </div>
                </div>
                <!-- 账号密码登录框 -->
                <div id="box2">
                    <div id="nusename">
                        <label for="for1"><img src="img/pygame.png" ></label><input type="text" name="user" id="for1" value=""  placeholder="邮箱/用户名/已验证手机"/>
                    </div>
                    <div id="password">
                        <label for="for2"><img src="img/password_icon.png" ></label><input type="password" name="user" id="for2" value="" placeholder="密码"/>
                    </div>
                    <a href="https://aq.jd.com/process/findPwd?s=1" target="_blank">忘记密码</a>
                    <button type="button">登&emsp;录</button>
                </div>
                <!-- 第三方登录 -->
                <div id="box3">
                    <a href="" id="qq">QQ</a>
                    <font>|</font>
                    <a href="" id="weixin">微信</a>
                    <a href="" id="register">立即注册</a>
                </div>
            </div>
        </div>
        
        
        <!-- ==========网页底部========== -->
        <div id="bottom">
            <div>
                <a href="">关于我们<font>|</font></a>
                <a href="">联系我们<font>|</font></a>
                <a href="">人才招聘<font>|</font></a>
                <a href="">商家入驻<font>|</font></a>
                <a href="">广告服务<font>|</font></a>
                <a href="">手机京东<font>|</font></a>
                <a href="">友情链接<font>|</font></a>
                <a href="">销售联盟<font>|</font></a>
                <a href="">京东社区<font>|</font></a>
                <a href="">京东公益<font>|</font></a>
                <a href="">English Site</a>
                          
            </div>
            <p>Copyright©2004-2019  京东JD.com 版权所有</p>
        </div>
    </body>
</html>

顶部样式表

#top{
    height: 120px;
}
/* 图标顶部 */
#top #icon{
    height: 80px;
    /* 让icon的字标签在绝对定位时相对于自己定位 */
    position: relative;
}

#top #icon #img{
    position: absolute;
    left: 185px;
    top: 50%;
    margin-top: -30px;
}
#top #icon #img a{
    text-decoration: none;
}
#top #icon #question a{
    position: absolute;
    right: 188px;
    bottom: 15px;
    /* 字体 */
    font-size: 12px;
    color: rgb(147,147,147);
    text-decoration: none;
    /* 设置背景图 
        background:地址 是否平铺 水平方向位置 垂直方向位置 背景颜色
    */
    background: url(../img/q-icon.png) no-repeat 0 center rgba(0,0,0,0);
    /* 让文字相对于前面的小图标往后挪 */
    padding-left: 22px;
    
}
#top #icon #question a:hover{
    color: #e4393c;
    text-decoration: underline;
}
/* 隐私政策 */
#top #privacy{
    height: 40px;
    background-color: #fff8f0;
    
}
#top #privacy p{
    /* 垂直方向居中(在父标签中)
    1.设置高度和父标签一样
    2.设置行高和自己的高度一样 */
    line-height: 40px;
    height: 40px;
    font-size: 12px;
    color: rgb(147,147,147);
    text-align: center;
    position: relative;
}
#top #privacy p img{
    position: absolute;
    top: 50%;
    margin-top: -8px;
}
#top #privacy p a{
    color:rgb(50,50,50);
    text-decoration: none;
}
#top #privacy p a:hover{
    text-decoration: underline;
}

中部样式表

#middle{
    height: 475px;
    background:rgb(13,38,78);
}
#middle #bigimg{
    margin-left: 700px;
}
#middle #login-box{
    width: 350px;
    height: 400px;
    background-color: white;
    float: right;
    margin-right: 188px;
    margin-top: 10px;
}
/* 第一块 */
#middle #login-box #box1{
    height: 95px;
}
/* 警告 */

#middle #login-box #box1 #warning{
    background-color: #fff8f0;
    height: 40px;
    line-height: 40px;
    font-size: 12px;
    color: rgb(147,147,147);
    /* 水平方向居中 */
    text-align: center;
}
#middle #login-box #box1 #warning img{
    /* 内容垂直方向的布局方式 */
    vertical-align: middle;
}

/* 选择 */
#middle #login-box #box1 #choice{
    height: 55px;
    color: rgb(235,235,235);
    font-size: 17px;
    font-weight: 100;
}
#middle #login-box #box1 #choice button{
    width: 170px;
    height: 100%;
    background-color: #ffffff;
    border: none;
    font-size: 20px;
    color: rgb(94,94,94);
}
#middle #login-box #box1 #choice button:focus{
    outline-color: snow;
    color: rgb(217,46,56);
}
/* 第二块 */
#middle #login-box #box2{
    background-color: #ffffff;
    height: 255px;
    border-top: 1px solid rgb(150,150,150);
    border-bottom: 1px solid rgb(150,150,150);
    position: relative;
}
#middle #login-box #box2 div{
    width: 310px;
    height: 40px;
    border: 1px solid rgb(184,184,184);
    margin-left: 20px;
    margin-top: 30px;
}
#middle #login-box #box2 button{
    width: 310px;
    margin-left: 20px;
    height: 35px;
    position:absolute ;
    bottom: 30px;
    border: 0;
    background-color: rgb(214,36,50);
    color: white;
    font-size: 21px;
}
#middle #login-box #box2 button:focus{
    outline: none;
}
#middle #login-box #box2 button:active{
    border: 4px solid rgba(35,138,194,0.8);
}
#middle #login-box #box2 a{
    position: absolute;
    right: 20px;
    font-size: 12px;
    margin-top: 12px;
    text-decoration: none;
    color:gray;
}
#middle #login-box #box2 a:hover{
    color: rgb(216,48,60);
    text-decoration: underline;
}
#middle #login-box #box2 #password{
    margin-top: 20px;
}
/* 输入框下的图片 */
#middle #login-box #box2 div img{
    width: 40px;
    height: 40px;
    border-right: 1px solid rgb(184,184,184);
}
#middle #login-box #box2 div input{
    width: 260px;
    height: 100%;
    vertical-align: top;
    border: none;
    font-size: 14px;
}
#middle #login-box #box2 div input:focus{
    outline: none;
}

/* 第三块 */
#middle #login-box #box3{
    height: 48px;
    line-height: 45px;
}
#middle #login-box #box3 a{
    font-size: 13px;
    text-decoration: none;
    color: rgb(147,147,147);
    padding-left: 30px;
}
#middle #login-box #box3 #qq{
    float: left;
    margin-left: 20px;
    background: url(../img/qq.png) no-repeat 0 center rgb(255,255,255);
}
#middle #login-box #box3 #weixin{
    float: left;
    background: url(../img/weixin.png) no-repeat 0 center rgb(255,255,255);
}
#middle #login-box #box3 font{
    float: left;
    margin-left: 20px;
    margin-right: 20px;
}
#middle #login-box #box3 #register{
    float: right;
    margin-right: 20px;
    font-size: 14px;
    color:rgb(155,27,16);
    background: url(../img/right.png) no-repeat 0 center rgb(255,255,255);
}
#middle #login-box #box3 #qq,#weixin,#register{
    
}

底部样式表

#bottom {
    height: 105px;
    
}
#bottom div{
    height: 50px;
    line-height: 50px;
    text-align: center;
    
}
#bottom p{
    font-size: 12px;
    text-align: center;
    color: rgb(97,97,97);
}
#bottom a{
    font-size: 12px;
    text-decoration: none;
    color: rgb(97,97,97);
    
}
#bottom font{
    margin-left: 13px;
    margin-right: 13px;
}
1.png
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 问答题47 /72 常见浏览器兼容性问题与解决方案? 参考答案 (1)浏览器兼容问题一:不同浏览器的标签默认的外补...
    _Yfling阅读 13,796评论 1 92
  • CSS 指层叠样式表(Cascading Style Sheets),是一种用来为结构化文档(如 HTML 文档或...
    神齐阅读 2,129评论 0 14
  • 专业考题类型管理运行工作负责人一般作业考题内容选项A选项B选项C选项D选项E选项F正确答案 变电单选GYSZ本规程...
    小白兔去钓鱼阅读 9,055评论 0 13
  • 简介网络浏览器很可能是使用最广的软件。在这篇入门文章中,我将会介绍它们的幕后工作原理。我们会了解到,从您在地址栏输...
    wengjq阅读 2,071评论 2 15
  • 第一部分 HTML&CSS整理答案 1. 什么是HTML5? 答:HTML5是最新的HTML标准。 注意:讲述HT...
    kismetajun阅读 27,695评论 1 45