html编写网易邮箱注册页面
时间: 2023-11-15 16:28:12 浏览: 64
<!DOCTYPE html>
<html>
<head>
<title>网易邮箱注册</title>
<meta charset="UTF-8">
<style>
body {
background-color: #f5f5f5;
font-family: Arial, sans-serif;
font-size: 14px;
color: #666;
margin: 0;
padding: 0;
}
.container {
width: 600px;
margin: 0 auto;
padding: 30px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.title {
font-size: 24px;
font-weight: bold;
margin-bottom: 20px;
}
.form {
margin-bottom: 20px;
}
.form label {
display: block;
margin-bottom: 5px;
font-size: 16px;
font-weight: bold;
}
.form input[type="text"], .form input[type="password"] {
display: block;
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 3px;
box-sizing: border-box;
margin-bottom: 10px;
font-size: 16px;
color: #666;
background-color: #fff;
}
.form input[type="submit"] {
display: block;
width: 100%;
padding: 10px;
border: none;
border-radius: 3px;
background-color: #d33;
color: #fff;
font-size: 16px;
cursor: pointer;
}
.form input[type="submit"]:hover {
background-color: #c00;
}
.error {
color: #f00;
font-size: 14px;
margin-top: 5px;
}
</style>
</head>
<body>
<div class="container">
<div class="title">网易邮箱注册</div>
<form class="form" action="#" method="post">
<label for="email">邮箱</label>
<input type="text" id="email" name="email" required>
<span class="error">请输入正确的邮箱地址</span>
<label for="password">密码</label>
<input type="password" id="password" name="password" required>
<span class="error">请输入密码</span>
<label for="confirm-password">确认密码</label>
<input type="password" id="confirm-password" name="confirm-password" required>
<span class="error">请确认密码</span>
<input type="submit" value="注册">
</form>
</div>
</body>
</html>