高保真还原登录界面

195 阅读2分钟

效果图见下:

代码见下:

html部分:

会员登录

立即注册

享积分换礼、返现等专属优惠!

普通登录

手机动态密码登录

换一张

30天内自动登录

忘记密码?

您也可以用合作网站的帐号登录去i旅行网

css部分:

*{

margin: 0;

padding: 0;

}

html,body{font-size: 12px;font-family: '微软雅黑';height: 100%;}

body{

background: url(./img/1.jpg) no-repeat;

background-size: 100% 100%;

overflow: hidden;

}

.box{

width: 500px;

height: 650px;

background-color: #eee;

margin: 10px auto;

position: relative;

overflow: hidden ;

}

.img1{

width: 80px;

height: 82px;

position: absolute;

right: 0;

top: 0;

}

.dec{

width: 397px;

height: 23px;

margin: 77px auto 9px;

}

.zi1{

font-size: 24px;

color: #131313;;

}

.zi2{

margin-left: 40px;

color: #1a479c;

}

.zi3{

color: #131313;

}

.line{

width: 450px;

height: 2px;

margin: 0 auto;

background-color: #cccccc;

}

#a{

width: 16px;

height: 16px;

vertical-align: text-bottom;

margin-left: 126px;

}

#b{

width: 16px;

height: 16px;

vertical-align: text-bottom;

margin-left: 56px;

}

.radio-group{

margin-top: 39px;

margin-left: 10px;

}

.label1{

font-size: 16px;

color: #000;

cursor: pointer;

}

.label2{

font-size: 12px;

color: #414141;

cursor: pointer;

margin-left: 9px;

}

.user{

background: url(./img/2.png) 16px center no-repeat;

width: 380px;

height: 40px;

outline: none;

border: 1px solid #aaaaaa;

padding-left: 69px;

background-color: white;

margin: 35px auto 29px;

display: block;

box-sizing: border-box;

}

.pwd{

background: url(./img/3.png) 16px center no-repeat;

width: 380px;

height: 40px;

outline: none;

border: 1px solid #aaaaaa;

padding-left: 69px;

background-color: white;

margin: 0 auto 29px;

display: block;

box-sizing: border-box;

}

.yzm{

display: flex;

}

.yzm .yzm-input{

width: 180px;

height: 40px;

border: 1px solid #aaa;

outline: none;

background: #fff;

padding-left: 20px;

box-sizing: border-box;

margin-left: 60px;

}

.yzm-img{

width: 150px;

height: 40px;

border: 1px solid #aaa;

margin-left: 50px;

box-sizing: border-box;

}

.yzm-img img{

width: 100%;

height: 100%;

display: block;

}

.yzm span{

color: #1a479c;

font-size: 14px;

line-height: 40px;

margin-left: 9px;

}

.jizhu{

margin-top: 31px;

}

#e{

width: 16px;

height: 16px;

vertical-align: text-top;

margin-left: 61px;

}

.jizhu label{

font-size: 14px;

color:#010101;

margin-left: 11px;

}

.jizhu span{

color: #1a479c;

font-size: 14px;

margin-left: 188px;

}

.login{

width: 380px;

height: 45px;

background-color: #f19149;

margin: 25px auto 30px;

box-sizing: border-box;

border: 2px solid #f5b381;

font-size: 24px;

color: #fff;

text-align: center;

}

.login:hover{

background-color: #eb6100;

cursor: pointer;

}

.line2{

width: 500px;

height: 1px;

background-color: #e5e5e5;

}

.dec2{

font-family: SimSun;

font-size: 14px;

color: #1a479c;

margin-left: 35px;

margin-top: 13px;

}

.tu{

margin-top: 26px;

margin-left: 58px;

}

.tu img{

width: 380px;

height: 30px;

}