首页 > 代码库 > 登陆界面设置
登陆界面设置
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>登录页面</title>
<style>
body,h2,div{
margin: 0;
padding: 0;
}
#main{
width: 400px;
height: 250px;
border: 1px solid rgb(185,192,204);
border-radius: 5px;
box-shadow: 3px 3px 3px #888;
position: absolute;
left: 50%;
top: 50%;
margin-left: -200px;
margin-top: -200px;
/*position: relative;*/
}
#in{
width: 100%;
height: 160px;
/*background: #fff;*/
/*line-height: 1.5;*/
padding-left: 40px;
}
#in input{
line-height: 2;
margin-top: 25px;
width: 200px;
border:1px solid #C2C2C2;
border-radius: 3px;
}
#in input[type=text]{
background: url(imgs/user1.png) no-repeat 0 center;
-webkit-background-size: 20px 20px;
background-size: 20px 20px;
padding-left: 22px;
}
#in input[type=password]{
background: url(imgs/lock2.png) no-repeat 0 center;
-webkit-background-size: 20px 20px;
background-size: 20px 20px;
padding-left: 22px;
}
label{
color: #585858;
}
#btn{
width: 100%;
height: 45px;
line-height: 45px;
background: rgb(68,68,68);
text-align: center;
}
h2{
font-size: 25px;
background: rgb(68,68,68);
color:#fff;
text-indent: 15px;
height: 45x;
line-height: 45px;
}
</style>
</head>
<body>
<div id="main">
<h2>LOGIN</h2>
<form action="action/loginAction.php" method="post">
<div id="in">
<label for="username">用户名:<input type="text" name="username" id="username" placeholder="输入用户名"></label><br>
<label for="userpass">密 码:<input type="password" name="userpass" id="userpass" placeholder="输入用户密码"></label><br>
</div>
<div id="btn">
<input type="submit" value="http://www.mamicode.com/登 录">
</div>
</form>
</div>
</body>
</html>
登陆界面设置