4.08

思维导图

css

案例
<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>注册页面</title>
		<style>
			html {
				height: 100%;
			}
			
			body {
				height: 100%;
				margin: 0px;
				display: flex;
				justify-content: center;
				align-items: center;
				background-image: url(img/Default.jpg);
				background‐size: cover;
			}
			
			#rg {
				
				background-color: white;
				width: 1000px;
				height: 500px;
				display: flex;
				padding‐top: 30px;
			}
			
			#div_left {
				width: 20%;
				margin‐left: 30px;
				font‐size: 20px;
				color: gainsboro;
				font‐weight: bolder;
			}
			
			#t1 {
				color: orange;
			}
			
			#div_center {
				margin‐top: 30px;
				width: 60%;
				color: gray;
				display: flex;
				flex‐direction: column;
				align-content: center;
			}
			
			#div_center input {
				width: 300px;
				height: 30px;
				border: 1px solid gainsboro;
				border‐radius: 5px;
				margin: 5px;
			}
			
			#div_center #verifies {
				display: flex;
				align-content: center;
			}
			
			#div_center #verify {
				width: 180px;
			}
			
			#div_center img {
				width: 110px;
				height: 35px;
			}
			
			#div_center #btn {
				background‐color: yellowgreen;
				width: 150px;
				height: 35px;
				border: none;
			}
			
			#div_right {
				width: 20%;
			}
			
			#div_right a {
				color: indianred;
				text‐decoration: none;
			}
		</style>
	</head>

	<body>
		<div id="rg">
			<div id="div_left">
				<font id="t1">新用户注册</font><br />
				<font id="t2">USER REGISTER</font>
			</div>
			<div id="div_center">
				<table>
					<tr>
						<td>账户</td>
						<td>
							<input type="text" name="username" placeholder="请输入账户" />
						</td>
					</tr>
					<tr>
						<td>密码</td>
						<td>
							<input type="text" name="password" placeholder="请输入密码" />
						</td>
					</tr>
					<tr>
						<td>Email</td>
						<td>
							<input type="text" name="email" placeholder="请输入邮箱" />
						</td>
					</tr>
					<tr>
						<td>姓名</td>
						<td>
							<input type="text" name="realname" placeholder="请输入姓名" />
						</td>
					</tr>
					<tr>
						<td>手机号</td>
						<td>
							<input type="text" name="phonenum" placeholder="请输入手机号" />
						</td>
					</tr>
					<tr>
						<td>性别</td>
						<td>
							<input type="text" name="sex" placeholder="请输入性别" />
						</td>
					</tr>
					<tr>
						<td>出生日期</td>
						<td>
							<input type="text" name="birthday" placeholder="yyyy年MM月dd日" />
						</td>
					</tr>
					<tr>
						<td>验证码</td>
						<td id="verifies">
							<input type="text" name="validatecode" id="verify" placeholder="请输入验证码" />
							<img id="img" src="img/verify_code.jpg" />
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<input id="btn" type="submit" value="注册"></input>
						</td>
					</tr>
				</table>
			</div>
			<div id="div_right">
				已有账户?
				<a href="index.html">立即登录</a>
			</div>
		</div>
	</body>

</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值