August 16-day 26 京东登录页面(补充版)

HTML代码

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>京东-欢迎登录</title>
        <!--设置网页图标
            rel: icon(设置图标)
            type:文件类型 image/x-icon
        -->
        <link rel="icon" type="image/ico" href="images/icon.ico"/>
        <link rel="stylesheet" type="text/css" href="css/jingdong.css"/>
        
    </head>
    <body>
        <!--===============第一部分(顶部)===============-->
        <div id="header">
            <div class="h-top">
                
                <!--图标部分-->
                <div class="icon">
                    <a href="https://www.jd.com/" target="_blank"><img src="images/logo.png"/></a>
                    <img src="images/l-icon.png"/>
                </div>
                
                <a id="d1" href="https://surveys.jd.com/index.php?r=survey/index/sid/568245/lang/zh-Hans" target="_blank">登录页面,调查问卷</a>
                
                
            </div>
            
            <div class="h-bottom">
                <div id="">
                    <img  src="images/warning.png"/>
                    <p>依据《网络安全法》,为保障您的账户安全和正常使用,请尽快完成手机号验证! 新版<a href="https://about.jd.com/privacy/" target="_blank">《京东隐私政策》</a>已上线,将更有利于保护您的个人隐私。</p>
                    
                </div>
                
            </div>
        </div>
        <!--===============第二部分(中间内容)===============-->
        <div id="content">
            <div class="input_div">
                <!--=====鱼头-->
                <div class="info-top">
                    <div class="top-top">
                        <img src="images/warning.png"/>
                        <p>京东不会以任何理由要求您转账汇款,谨防诈骗。</p>
                    </div>
                    
                    <div class="top-bottom">
                        <button>扫码登录</button>|
                        <button>帐号登录</button>
                    </div>
                    
                </div>
                <!--   鱼肚-->
                <div class="info-middle">
                    <!--===帐号-->
                    <div class="username">
                        <img src="images/pygame.png"/>
                        <input type="text" name="username" value="" placeholder="邮箱/用户/手机号"/>
                    </div>
                    <!--=====密码-->
                    <div class="password">
                        <img src="images/password_icon.png"/>
                        <input type="password" name="password"  value="" placeholder="密码"/>
                    </div>
                    <!--忘记密码-->
                    <a class="mima" href="https://safe.jd.com/findPwd/index.action">忘记密码</a>
                    
                    <!--登录-->
                    <a id="login" href="">登&nbsp;&nbsp;&nbsp;&nbsp;录</a>
                </div>
                
                <!--*************鱼尾-->
                <div class="info-bottom">
                    <div class="bottom-left">
                        <img src="images/qq.png"/>
                        <a style="padding-right: 15px ;" href="">QQ</a>|
                        <img style="padding-left: 5px ;" src="images/weixin.png"/>
                        <a href="">微信</a>
                    </div>
                    <div class="bottom-right">
                        <img src="images/right.png"/>
                        <a style="color: red;" href="">立即注册</a>
                    </div>
                </div>
                
            </div>
            
        </div>
        <!--===============第三部分(底部)===============-->
        <div id="footer">
            <div class="footer-up">
                <a href="">关于我们</a>|
                <a href="">联系我们</a>|
                <a href="">人才招聘</a>|
                <a href="">商家入驻</a>|
                <a href="">广告服务</a>|
                <a href="">手机京东</a>|
                <a href="">友情链接</a>|
                <a href="">销售联盟</a>|
                <a href="">京东社区</a>|
                <a href="">京东公益</a>|
                <a href="">English Site</a>
            </div>
            
            <div class="footer-down">
                <p>Copyright © 2004-2018  京东JD.com 版权所有</p>
            </div>
        </div>
        
    </body>
</html>

CSS代码

/*=========0.通用==========*/
*{
    margin: 0;
    padding: 0;
    position: relative;
}
a{
    text-decoration: none;
}

/*=========1.header==========*/

#header{
    width: 100%;
    height: 120px;
    /*background-color: red;*/
}

#header .h-top{
    width: 100%;
    height: 80px;
    /*background-color: hotpink;*/

}

#header .h-top .icon{
    position: absolute;
    left: 142px;
    
    /*垂直居中*/
    height: 60px;
    top: 50%;
    line-height: 60px;
    margin: -30px 0 0 0;
}

#header .h-top #d1{
    /*布局*/
    position: absolute;
    right: 40px;
    bottom: 10px;
    
    /*字体大小*/
    font-size: 12px;
    color: rgb(153,153,153);
    
    /*背景图*/
    background: url(../images/q-icon.png) no-repeat 0 center;
    padding-left: 20px;
}

#header .h-top #d1:hover{
    color: red;
    text-decoration: underline;
}

#header .h-bottom{
    width: 100%;
    height: 40px;
    background-color: rgb(255,248,240);
    /*让总体内容居中*/
    text-align: center;
}
#header .h-bottom div {
    display: inline;    
}

#header .h-bottom div p {
    font-size: 12px;
    color: rgb(153,153,153);
    display: inline;
}

#header .h-bottom div img {
    top: 8px;
}
/*
 * 
 z#header .h-bottom p{
    text-align: center;
    
    height: 40px;
    line-height: 40px;
    
    color: rgb(153,153,153);
    font-size: 12px;
    /*background: url(../images/warning.png) no-repeat 0 center;*/
}
#header .h-bottom p a{
    color: rgb(40,40,40);
    
}
#header .h-bottom p a:hover{
    text-decoration: underline;
}
    





/*=========2.content==========*/

#content{
    width: 100%;
    height: 514px;
    
    
    background: url(../images/QQ截图20180816144141.png) no-repeat 20% center;
    background-color: rgb(11,142,212);
}

#content .input_div{
    width: 344px;
    height: 438px;
    background-color: white;
    
    position: absolute;
    right: 160px;
    top: 10px;
}

#content .input_div .info-top{
    height: 100px;
    /*background-color: aquamarine;*/
    text-align: center;
    position: relative;
    background-color: rgb(255,248,240);
}
/* =============top部分==========*/
#content .input_div .info-top .top-top{
    display: inline;
}

#content .input_div .info-top .top-top p{
    font-size: 12px;
    color: rgb(153,153,153);
    display: inline;
}

#content .input_div .info-top .top-top img{
    top: 8px;
    
}

#content .input_div .info-top .top-bottom{
    width: 100%;
    height: 55px;
    background-color: white;
    
    position: absolute;
    bottom: 0px;
    
    border-bottom:1px solid rgb(220,220,220);
    
}
#content .input_div .info-top .top-bottom button:hover{
    color: red;
}
#content .input_div .info-top .top-bottom button:focus{
    color: red;
    
    /*按钮和输入框成为焦点后默认的边框,是outline*/
    outline: 0;
}
#content .input_div .info-top .top-bottom button{
    width: 165px;
    height: 55px;
    
    /*去掉颜色边框*/
    border: 0;
    background-color: rgba(0,0,0,0);
    
    font-size: 20px;
    color: rgb(53,53,53);
    
}

#content .input_div .info-middle{
    height: 288px;
    background-color: white;
    
}

#content .input_div .info-middle .username,#content .input_div .info-middle .password{
    background-color: white;
    width: auto;
    height: 50px;
    
    position: absolute;
    left: 20px;
    right: 20px;
    top: 40px;
    
    border: 1px solid rgb(180,180,180);
}
#content .input_div .info-middle .password{
    top: 110px;
}

#content .input_div .info-middle img{
    float: left;
    height: 100%;
    border-right: 1px solid rgb(180,180,180);
}

#content .input_div .info-middle input{
    
    border: 0;
    float: left;
    
    height: 100%;
    width: 80%;
    
    padding-left: 5px;
}

#content .input_div .info-middle input:focus{
    outline: none;
}

#content .input_div .info-middle a{
    position: absolute;
    top: 185px;
    right: 20px;
    
    font-size: 12px;
    color: rgba(220,220,220,0.9);
}

#content .input_div .info-middle a:hover{
    color: red;
    text-decoration: underline;
    
}

#content .input_div .info-middle #login{
    height: 33px;
    width: 304px;
    top: 225px;
    color: white;
    background-color: red;
    text-align: center;
    
    font-size: 25px;
    border: 0;
    text-decoration: none;
    font: "微软雅黑";
}

/*=======鱼尾*/
#content .input_div .info-bottom{
    height: 50px;
    background-color: white;
    border-top: 1px solid rgba(180,180,180,0.5);
}

#content .input_div .info-bottom .bottom-left{
    line-height: 50px;
    width: auto;
    font-size: 12px;
    color: rgb(180,180,180);
    left: 20px;
    position: absolute;
}
#content .input_div .info-bottom .bottom-left a:hover{
    color: red;
    text-decoration: underline;
}
#content .input_div .info-bottom .bottom-left img{
    top: 8px;
}

#content .input_div .info-bottom .bottom-right{
    
    float: right;
    right: 20px;
    line-height: 50px;
    
}
#content .input_div .info-bottom .bottom-right img{
    top: 8px;
}

#content .input_div .info-bottom .bottom-right a:hover{
    text-decoration: underline;
    
}
/*=========3.footer==========*/

#footer {
    width: 100%;
    height: 86px;
    background-color: white;
}

#footer .footer-up{
    width: 100%;
    top: 24px;
    text-align: center;
    /*background-color: aqua;*/
}

#footer .footer-up a{
    color: rgb(109,109,109);
    padding-left: 10px;
    padding-right: 10px;
    font-size: 12px;
    
}

#footer .footer-up a:hover{
    color: red;
    text-decoration: underline; 
    
}

#footer .footer-down{
    top: 30px;
    font-size: 12px;
    text-align: center;
/*  background-color: chartreuse;*/
}

显示结果:


页面显示
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容