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

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;*/
}

显示结果:


页面显示

你可能感兴趣的:(August 16-day 26 京东登录页面(补充版))