<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>登录/注册</title>
<style>
body {
background-color: #f2f2f2;
}
form {
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
padding: 20px;
width: 300px;
margin: 0 auto;
margin-top: 100px;
}
input[type="text"], input[type="password"] {
border-radius: 3px;
border: 1px solid #ccc;
box-sizing: border-box;
font-size: 16px;
margin-bottom: 10px;
padding: 10px;
width: 100%;
}
input[type="submit"] {
background-color: #4CAF50;
border: none;
border-radius: 3px;
color: #fff;
cursor: pointer;
font-size: 16px;
padding: 10px;
width: 100%;
}
input[type="submit"]:hover {
background-color: #3e8e41;
}
</style>
</head>
<body>
<form>
<h2>登录</h2>
<label for="username">用户名:</label>
<input type="text" id="username" name="username" required>
<label for="password">密码:</label>
<input type="password" id="password" name="password" required>
<input type="submit" value="登录">
</form>
<form>
<h2>注册</h2>
<label for="username">用户名:</label>
<input type="text" id="username" name="username" required>
<label for="password">密码:</label>
<input type="password" id="password" name="password" required>
<label for="confirm_password">确认密码:</label>
<input type="password" id="confirm_password" name="confirm_password" required>
<input type="submit" value="注册">
</form>
</body>
</html>
简单登录注册页面
最新推荐文章于 2024-09-11 15:33:18 发布