<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<style>
div {
padding: 10px;
}
button {
background-color: violet;
color: #fff;
border-radius: 20px;
}
form {
width: 500px;
border: 1px solid #000;
text-align: center;
}
</style>
<h1 style="margin-left: 170px">用户注册表</h1>
<form action="reg.php" method="post">
<div>
<label for="username">用户名:</label>
<input type="text" name="username" id="username" placeholder="用户名不能为空" autofocus />
</div>
<div>
<label for="password">密码:</label>
<input type="password" name="password" id="password" placeholder="密码不能为空" />
</div>
<div>
<label for="">性别:</label>
<input type="radio" name="sex" id="nan" value="0" checked />
<label for="nan">男</label>
<input type="radio" name="sex" id="nv" value="1" />
<label for="nv">女</label>
<input type="radio" name="sex" id="weizhi" value="2" />
<label for="weizhi">未知</label>
</div>
<div>
<label for="">爱好:</label>
<input type="checkbox" name="hobbies[]" id="dianying" />
<label for="dianying">电影</label>
<input type="checkbox" name="hobbies[]" id="dongman" />
<label for="dongman">动漫</label>
<input type="checkbox" name="hobbies[]" id="game" />
<label for="game">游戏</label>
</div>
<div>
<label for="">城市:</label>
<select name="city" id="">
<option value="0" selected disabled>--请选择--</option>
<option value="1">福建</option>
<option value="2">上海</option>
<option value="3">北京</option>
<option value="4">武汉</option>
</select>
</div>
<div>
<button>注册</button>
</div>
</form>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<style>
* {
padding: 0;
margin: 0;
}
.head {
text-align: center;
background-color: bisque;
border-bottom: 1px solid #000;
height: 80px;
}
.nav {
width: 100px;
height: 850px;
border-right: 1px solid #000;
background-color: aqua;
}
</style>
<div class="head">
<h1 style="text-align: center">简单的后台</h1>
<h3 style="margin-top: -30px; margin-left: 1500px">用户名:admin</h3>
</div>
<div class="nav">
<ul style="text-align: center; padding: 10px">
<li style="padding: 10px"><a href="../0704/zuoye2.html" target="right">课程表</a></li>
<li style="padding: 10px"><a href="zuoye.html" target="right">注册</a></li>
<li style="padding: 10px"><a href="https://www.sogou.com/" target="right">百度</a></li>
</ul>
</div>
<div style="margin-top: -850px; margin-left: 100px">
<iframe src="" frameborder="2" name="right" width="1800px" height="850px"></iframe>
</div>
</body>
</html>
相关推荐
© 2020 asciim码
人生就是一场修行