会员注册登录页面html
时间: 2023-10-27 20:14:57 浏览: 41
以下是一个简单的会员注册登录页面的 HTML 代码示例:
```html
<!DOCTYPE html>
<html>
<head>
<title>会员注册登录页面</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
}
form {
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
margin: 0 auto;
max-width: 400px;
}
input[type="text"], input[type="password"], input[type="email"] {
width: 100%;
padding: 12px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
button {
background-color: #4CAF50;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
float: right;
}
button:hover {
background-color: #45a049;
}
.container {
padding: 16px;
}
span.psw {
float: right;
padding-top: 16px;
}
@media screen and (max-width: 600px) {
form {
max-width: 300px;
}
}
</style>
</head>
<body>
<form>
<div class="container">
<label for="uname"><b>用户名</b></label>
<input type="text" placeholder="请输入用户名" name="uname" required>
<label for="email"><b>邮箱</b></label>
<input type="email" placeholder="请输入邮箱" name="email" required>
<label for="psw"><b>密码</b></label>
<input type="password" placeholder="请输入密码" name="psw" required>
<button type="submit">注册</button>
<label>
<input type="checkbox" checked="checked" name="remember"> 记住我
</label>
</div>
<div class="container" style="background-color:#f1f1f1">
<button type="button" class="cancelbtn">取消</button>
<span class="psw">忘记<a href="#">密码?</a></span>
</div>
</form>
</body>
</html>
```
这个页面包括一个简单的表单,用于用户输入用户名、邮箱和密码,以及注册和取消按钮。此外,还有一个“忘记密码”的链接。请注意,这只是一个基本的示例,实际上的会员注册登录页面可能包含更多的字段和功能。