HTML文件
京东-欢迎登陆
依据《网络安全法》,为保障您的账户安全和正常使用,请尽快完成手机号验证! 新版《京东隐私政策》已上线,将更有利于保护您的个人隐私。
CSS文件
/*==================通用====================*/
/*注意:写网页前一定要先将标签默认的margin值和padding值全部关闭*/
*{
margin: 0;
padding: 0;
position: relative;
}
button{
border: 0;
}
button:focus{
}
/*==================顶部====================*/
#top{
/*background-color: aquamarine;*/
height: 120px;
}
/*顶部的顶部*/
#top #banner{
/*background-color: blueviolet;*/
height:80px ;
}
#top #banner a{
position: absolute;
right: 180px;
bottom: 10px;
font-size: 12px;
color: rgb(138,138,138);
text-decoration: none;
/*设置图标
* background:图片地址 是否平铺 x y 颜色
* */
background: url(../img/img/q-icon.png) no-repeat 0px center;
padding-left:20px ;
}
#top #banner a:hover{
color: red;
text-decoration: underline;
}
#top #banner #img1{
margin-left: 188px;
/*垂直居中*/
position: absolute;
top: 50%;
margin-top:-30px ;
line-height: 60px;
}
#top #banner #img2{
position: absolute;
left: 365px;
/*垂直方向居中*/
top: 50%;
margin-top: -8px;
line-height: 40px;
}
/*顶部的底部*/
#top #message{
height: 40px;
background-color: rgb(255,246,236);
}
#top #message p{
font-size: 11px;
color: rgb(138,138,138);
/*text-align: center;*/
/*垂直方向居中*/
height: 40px;
line-height: 40px;
/*水平方向居中*/
width: 792px;
margin-left: auto;
margin-right: auto;
/*调图标的位置*/
padding-left:25px ;
background: url(../img/img/warning.png) no-repeat 0px center;
}
#top #message a{
color: black;
text-decoration: none;
}
#top #message a:hover{
text-decoration: underline;
}
/*==================内容====================*/
#content{
background-color: rgb(84,161,220);
height: 475px;
}
/*==========内容背景*/
#content #img1{
margin-left: 80px;
position: absolute;
top: 50%;
margin-top: -237px;
}
/*==========登录框*/
#content #login{
background-color: white;
height: 400px;
width: 350px;
position: absolute;
right: 150px;
top: 15px;
}
/*====登录框的顶部*/
#content #login #div1{
height: 100px;
/*background-color: antiquewhite;*/
}
#content #login #div1 #text{
height: 40px;
background-color: rgb(255,246,236);
}
#content #login #div1 #text p{
font-size: 11px;
text-align: center;
color: rgb(138,138,138);
height: 40px;
line-height: 40px;
}
#content #login #div1 #text p img{
position: absolute;
top:50%;
margin-top: -12px;
line-height: 25px;
}
#content #login #div1 #button{
height: 60px;
/*background-color: aqua;*/
color: rgba(220,220,220,0.4);
font-size: 20px;
font-weight: 100;
font-family: "微软雅黑";
}
#content #login #div1 #button button{
height: 100%;
width: 172px;
border: 0;
font-size: 20px;
color: rgb(80,80,80);
background-color: rgba(255,255,255,0);
}
#content #login #div1 #button #btn2{
float: right;
}
#content #login #div1 #button button:focus{
color: rgb(217,34,46);
outline: 0;
}
/*====登录框的中间*/
#content #login #div2{
height: 250px;
/*background-color: #000000;*/
border-top:1px solid rgba(220,220,220,0.5);
border-bottom:1px solid rgba(220,220,220,0.5);
}
#content #login #div2 #username,#password{
/*background-color: #7FFF00;*/
width:300px ;
height: 40px;
/*水平居中*/
margin-left: auto;
margin-right: auto;
border: 1px solid rgb(200, 200, 200);
}
/*用户名和密码*/
#content #login #div2 #username{
margin-top: 30px;
}
#content #login #div2 #password{
margin-top: 20px;
}
#content #login #div2 input{
height: 100%;
width: 249px;
border: 0;
padding-left: 10px;
float: right;
border-left: 1px solid rgb(200,200,200);
font-size: 14px;
}
#content #login #div2 input:focus{
outline: 0;
}
#content #login #div2 #username #user-btn,#password-btn{
height: 40px;
width: 40px;
/*background-color: chartreuse;*/
}
#content #login #div2 #username #user-btn img, #password-btn img{
width: 100%;
height: 100%;
}
/*忘记密码*/
#content #login #div2 a{
position: absolute;
right: 25px;
margin-top: 20px;
font-size: 13px;
color: rgb(138,138,138);
text-decoration: none;
}
#content #login #div2 a:hover{
text-decoration: underline;
color: red;
}
/*登录按钮*/
#content #login #div2 #btn1{
display: block;
width: 300px;
height: 35px;
position: absolute;
bottom: 30px;
left: 25px;
border: 0;
background-color: red;
color: white;
font-size: 20px;
}
#content #login #div2 #btn1:focus{
outline: none;
}
/*点击按钮是添加边框效果*/
#content #login #div2 #btn1:active{
border: 2px solid lightskyblue ;
border-radius: 4px;
}
/*=====登录框的底部*/
#content #login #div3{
height: 50px;
/*background-color: blue;*/
/*内容垂直方向居中*/
line-height: 50px;
font-size: 8px;
color: rgb(138,138,138);
}
#content #login #div3 a{
font-size: 12px;
color: rgb(138,138,138);
text-decoration: none;
}
#content #login #div3 a:hover{
color: red;
text-decoration: underline;
}
#content #login #div3 #zhuce{
position: absolute;
right: 25px;
background: url(../img/img/right.png) no-repeat 0 center;
padding-left: 25px;
}
#content #login #div3 #QQ{
margin-left: 25px;
margin-right: 15px;
background: url(../img/img/qq.png) no-repeat 0 center;
padding-left: 25px;
}
#content #login #div3 #weixin{
margin-left: 5px;
background: url(../img/img/weixin.png) no-repeat 0 center;
padding-left: 25px;
}
/*==================底部====================*/
#bottom{
/*background-color: chartreuse;*/
height: 105px;
text-align: center;
}
#bottom #a{
height: 50px;
/*background-color: #87CEFA;*/
line-height: 50px;
font-size: 12px;
color:rgb(130,130,130) ;
}
#bottom #a a{
margin-left: 10px;
margin-right: 15px;
color:rgb(130,130,130) ;
text-decoration: none;
}
#bottom #a a:hover{
color: red;
text-decoration: underline;
}
#bottom #p p{
text-align: center;
color:rgb(130,130,130) ;
font-size: 12px;
}