day4-作业

jingdong.html



    
        
        京东-欢迎登录
        
        
        
        
        
    
    
        
        
        
        
        

京东不会以任何理由要求您转账汇款,谨防诈骗。

|
忘记密码

jingdong.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 a{
    /*布局*/
    position: absolute;
    right: 35px;
    bottom: 10px;
    
    /*字体*/
    font-size: 12px;
    color:rgb(153,153,153);
    
    /*背景图*/
    background: url(../img/q-icon.png) no-repeat 0 center;
    padding-left: 20px;
}

#header .h-top a: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, .top-top{
    /*background-color: chartreuse;*/
    display: inline;
}

/*用图片标签做*/
#header .h-bottom div p, .top-top p{
    font-size: 12px;
    color: rgb(153,153,153);
    
    display: inline;
}
#header .h-bottom div img, .top-top img{
    top: 8px;
}

/*用背景图的时候*/
/*#header .h-bottom p{
    text-align: center;
    height: 40px;
    line-height: 40px;
    
    color: rgb(153,153,153);
    font-size: 12px;
    
    background: url(../img/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(../img/bg2.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: rgb(255,248,240);
    
    text-align: center;
}

#content .input_div .info-top .top-bottom{
    height: 55px;
    width: 100%;
    background-color: white;
    
    position: absolute;
    bottom: 0px;
    /*设置竖线的颜色*/
    color: rgb(200,200,200);
    
    /*设置分割线*/
    border-bottom: 1px solid rgb(220,220,220);
}

#content .input_div .info-top .top-bottom button{
    width: 160px;
    height: 55px;
    
    /*去掉按钮的边框和背景色*/
    border: 0;
    background-color: rgba(0,0,0,0);
    
    font-size: 20px;
    color: rgb(53,53,53);
}
#content .input_div .info-top .top-bottom button:hover{
    color: red;
}
#content .input_div .info-top .top-bottom button:focus{
    color: red;
    /*按钮和输入框成为焦点后默认的边框,是outline*/
    outline: none;
}




/*登录框的中部*/
#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: 40px;
    
    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: 15px;
}
/*设置成为焦点的状态的样式*/
#content .input_div .info-middle input:focus{
    outline: none;
}

/*忘记密码*/
#content .input_div .info-middle a{
    /*float: right;*/
    
    position: absolute;
    top: 180px;
    right: 20px;
    
    font-size: 12px;
    color: rgba(180, 180, 180,1);
}
#content .input_div .info-middle a:hover{
    color: red;
    text-decoration: underline;
}
#content .last{
    position: absolute;
    width: 344px;
    height: 40px;
    
    bottom: 30px;
    }

#content .last button{
    height: 100%;
    width: 80%;
    margin-left: 32px;
    background-color: rgb(228,57,60);
    
}


/*登录框的底部*/
#content .input_div .info-bottom{
    height: 50px;
    border-top: 1px solid rgba(220,220,220,0.5);
    line-height: 50px;
    
    
}

#content .info-bottom img{
    /*position: absolute;*/
    top: 8px;
    /*margin-right: 10px;*/
}
#content .info-bottom .a1{
    margin-right: 15px;
    font-size: 12px;
    color: black;
}
#content .info-bottom .p1{
    margin-left: 10px;
}
#content .info-bottom .a2{
    
    font-size: 12px;
    color: black;
}
#content .info-bottom .a1:hover{
    color: red;
    text-decoration: underline;
}
#content .info-bottom .a2:hover{
    color: red;
    text-decoration: underline;
}
#content .info-bottom .p2{
    position: absolute;
    top: 0;
    left: 100px;
}
#content .info-bottom .a3{
    position: absolute;
    right: 20px;
    color: red;
}
#content .info-bottom .a3:hover{
    text-decoration: underline;
}


/*=========3.footer===========*/
#footer{
    width: 100%;
    height: 86px;
    background-color: white;
    text-align: center;
    margin-top: 20px;
}
#footer a{
    color: black;
    font-size: 12px;
    margin-left: 5px;
}
#footer a:hover{
    color: red;
    text-decoration: underline;
    
    
}
#footer p{
    font-size: 12px;
}
#footer span{
    margin-left: 5px;
}

效果图


111.jpg

你可能感兴趣的:(day4-作业)