<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>用户注册</title>
<style>
.rg_layout{
width: 900px;
height: 500px;
margin: auto;
margin-top: 15px;
}
.rg_left{
float: left;
margin: 15px;
width: 20%;
}
.td_left{
width: 100px;
text-align: right;
height: 45px;
}
.td_right{
padding-left: 50px;
}
</style>
</head>
<body >
<div class="rg_layout">
<div class="rg_center">
<h1 style=" margin: 0; text-align:center">用户注册</h1>
<form>
<table>
<tr>
<td class="td_left">
<label for="username">用户名</label></td>
<td class="td_right">
<input type="text" name="username" id="username" placeholder="请输入用户名" required="required"></td>
</tr>
<tr>
<td class="td_left">
<label for="password">密码</label></td>
<td class="td_right">
<input type="password" name="password" id="password" placeholder="请输入密码" required="required">
</td>
</tr>
<td colspan="2" align="center">
<input type="button" id="btn" value="注册">
</td>
</tr>
</table>
</form>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>登录界面</title>
<style type="text/css">
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
}
.wrok {
width: 100%;
height: 100%;
padding: 10% 0;
position: fixed;
}
.container input {
width: 320px;
display: block;
height: 36px;
padding: 6px 10px;
line-height: 24px;
margin: 32px auto;
}
</style>
</head>
<body>
<div class="wrok">
<div class="container">
<h1 style=" margin: 0; text-align: center">用户登录</h1>
<form action="check.php" method="post">
<label>
<input type="text" name="username" id="username" placeholder="请输入账号" required="required"></td>
</label>
<label>
<input type="text" name="username" id="username" placeholder="请输入密码" required="required"></td>
</label>
<input type="button" id="btn1" value="登录">
<input type="button" id="btn2" value="注册">
</form>
<script src="js/jquery.js"></script>
<script>
</script>
</div>
</div>
</body>
</html>