先来看一下最终的效果:
* {
padding: 0px;
margin: 0px;
}
#headBox {
width: 1000px;
height: 80px;
position: relative;
left: 50%;
margin-left: -500px;
}
.welcome {
position: relative;
top: -27px;
}
.rightLogin {
position: absolute;
bottom: 5px;
right: 0px;
color: gray;
text-decoration: none;
font-size: 12px;
}
.rightImg {
position: absolute;
right: 100px;
bottom: 3px;
}
#mainBox {
width: 100%;
height: 474px;
background-color: #E93854;
position: relative;
}
#mainBox>img {
position: absolute;
left: 450px;
top: 0px;
}
#loginBox {
width: 350px;
height: 430px;
background-color: #ffffff;
position: absolute;
left: 1110px;
top: 15px;
}
#hintBox {
width: 100%;
height: 37px;
background-color: #fff8f0;
text-align: center;
line-height: 37px;
font-size: 12px;
color: darkgray;
}
#hintBox>img {
position: relative;
top: 5px;
}
.loginMenu {
display: inline-block;
margin: 18px 0px;
font-size: 18px;
font-weight: 800;
width: 170px;
text-align: center;
color: gray;
}
.active {
color: red;
}
#smLogin {
border-right: 1px solid gray;
}
#smContent,
#zhContent {
width: 100%;
height: 280px;
position: absolute;
left: 0px;
top: 95px;
border-bottom: 1px solid gray;
}
#loginFoot {
width: 100%;
height: 50px;
background-color: #fefefe;
position: absolute;
bottom: 0px;
line-height: 50px;
}
#loginFoot img {
position: relative;
top: 6px;
}
#loginFoot>a {
color: red;
text-decoration: none;
}
#smContent>img {
position: absolute;
left: 90px;
top: 30px;
cursor: pointer;
}
#footBox {
width: 730px;
height: 50px;
margin: 10px auto;
font-size: 12px;
color: gray;
text-align: center;
}
.inputBox {
width: 300px;
height: 35px;
border: 1px solid gray;
margin: 15px 25px;
text-align: center;
line-height: 35px;
}
#zhContent>a {
position: relative;
right: -265px;
text-decoration: none;
color: purple;
}
#nameInput,
#pwdInput {
margin-top: 35px;
margin-bottom: 35px;
}
.inputBox>input {
width: 255px;
height: 32px;
position: relative;
top: -13px;
font-size: 18px;
border: none;
outline: none;
}
#box8{
position: relative;
left: 90px;
top: 200px;
}
a{
color: red;
text-decoration: none;
}