html css js创建账户界面
时间: 2023-10-04 12:05:16 浏览: 27
<!DOCTYPE html>
<html>
<head>
<title>创建账户</title>
<style>
body {
background-color: #f2f2f2;
font-family: Arial, sans-serif;
}
h1 {
text-align: center;
margin-top: 50px;
color: #333;
}
form {
margin: 0 auto;
max-width: 400px;
padding: 20px;
background-color: #fff;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
border-radius: 5px;
margin-top: 50px;
}
label {
display: block;
margin-bottom: 10px;
color: #333;
}
input[type=text], input[type=password], input[type=email] {
width: 100%;
padding: 10px;
border-radius: 5px;
border: none;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
margin-bottom: 20px;
font-size: 16px;
}
input[type=submit] {
background-color: #4CAF50;
border: none;
color: white;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
input[type=submit]:hover {
background-color: #3e8e41;
}
</style>
</head>
<body>
<h1>创建账户</h1>
<form action="" method="post">
<label for="username">用户名</label>
<input type="text" id="username" name="username" required>
<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>
<input type="submit" value="创建账户">
</form>
</body>
</html>