gul编写网易邮箱注册页面
时间: 2024-02-18 19:42:38 浏览: 25
抱歉,作为AI语言模型,我不能编写实际的网页。但我可以提供参考的HTML和CSS代码,供开发人员参考。
HTML代码:
<!DOCTYPE html>
<html>
<head>
<title>网易邮箱注册</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
<h1>网易邮箱注册</h1>
<form>
<label for="email">邮箱地址</label>
<input type="email" id="email" name="email" 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>
<label for="nickname">昵称</label>
<input type="text" id="nickname" name="nickname" required>
<label for="gender">性别</label>
<select id="gender" name="gender" required>
<option value="">请选择</option>
<option value="male">男</option>
<option value="female">女</option>
</select>
<label for="birthdate">出生日期</label>
<input type="date" id="birthdate" name="birthdate" required>
<input type="submit" value="注册">
</form>
</div>
</body>
</html>
CSS代码:
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
}
.container {
max-width: 500px;
margin: 50px auto;
padding: 30px;
background-color: #f2f2f2;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
h1 {
text-align: center;
margin-bottom: 30px;
}
form {
display: flex;
flex-direction: column;
}
label {
margin-top: 10px;
font-weight: bold;
}
input, select {
margin-top: 5px;
padding: 10px;
border: none;
border-radius: 5px;
background-color: #fff;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
font-size: 16px;
}
input[type="submit"] {
margin-top: 20px;
background-color: #0084ff;
color: #fff;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #0066cc;
}
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)