HTML网页登录模板制作

HTML网页登录模板制作

html代码

<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>用户注册页面</title>
	<link rel="stylesheet" href="css/base.css">
	<link rel="stylesheet" href="css/register.css">
	<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
</head>
<body>

	<div id="user-wrapper">
		<div class="header"></div>
		<form action="post">
			<div class="for-con">
				<div class="first">
					<input type="text" name="tel" placeholder="请输入联系方式">
					<span>获取验证码</span>
				</div>
				<div class="content">
					<input type="text" name="num" placeholder="请输入验证码">
				</div>
			</div>
			<div class="after">
				<input type="submit" name="user" value="用户验证">
			</div>
		</form>
	</div>
</body>
</html>

css样式

*{
	margin: 0px;
	padding: 0px;
}
body{
	background-color: #000;
	font-family: "微软雅黑";
}
#user-wrapper{
	 100%;
	height: 100%;
	max- 800px;
	margin: 0 auto;
	background-color: #f7f7f7;
	letter-spacing: 1px;
}
#user-wrapper .header{
	 100%;
	height: 100px;
}

#user-wrapper form .for-con{
	background-color: #fff;
	position: relative;
	border-top: 1px solid #ccc;
}
#user-wrapper form .for-con:after{
	content:"";
	display: table;
	clear: both;
}
#user-wrapper form .for-con.first{
	position: relative;
	border: none;
}
#user-wrapper form .for-con .first input{
	 100%;
	line-height: 40px;
	font-weight: normal;
	border: 0;
	border-bottom: 1px solid #ccc;
	padding-left: 10px;
}
#user-wrapper form .for-con .first span{
	position: absolute;
	top: 8px;
	right: 10px;
	border-radius: 3px;
	padding: 3px 10px;
	color: #fff;
	font-size: 16px;
	font-weight: normal;
	background-color: #00bfff;
}
#user-wrapper form .for-con .content input{
	 100%;
	line-height: 40px;
	font-weight: normal;
	border: 0;
	padding-left: 10px;
	border-bottom: 1px solid #ccc;
}
.after{
	 80%;
	margin: 0 auto;
	background-color: #00bfff;
	border-radius: 3%;
	padding: 10px 0px;
	margin-top: 20px;
	margin-bottom: 20px;
}
.after a{
	text-decoration: none;
	color: #fff;
	padding: 2% auto;
	text-align: center;
	font-weight: normal;
}
.after input{
	 100%;
	text-decoration: none;
	color: #333;
	padding: 2% auto;
	font-weight: normal;
	background: linear-gradient(to bottom, #00bfff, #00bfff);
	-webkit-background: linear-gradient(to bottom, #00bfff, #00bfff);
	color: #fff;
	border-radius: 4px;
	border: 0;
	font-size: 1.18em;
	cursor: pointer;
}

原文地址:https://www.cnblogs.com/xiuxiu123/p/5220490.html