背景为蓝色的图书管理系统注册页面html
时间: 2024-02-23 22:06:43 浏览: 26
以下是一个背景为蓝色的图书管理系统注册页面的HTML代码示例:
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>图书管理系统注册</title>
<style>
body {
background-color: #0074D9;
color: #FFF;
font-family: Arial, sans-serif;
}
form {
background-color: #FFF;
padding: 20px;
border-radius: 5px;
width: 400px;
margin: 0 auto;
}
input[type="text"], input[type="password"], input[type="email"] {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: none;
border-radius: 5px;
font-size: 16px;
}
label {
display: block;
margin-bottom: 10px;
}
input[type="submit"] {
background-color: #0074D9;
color: #FFF;
border: none;
border-radius: 5px;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #0052A3;
}
</style>
</head>
<body>
<form action="register.php" method="post">
<h1>图书管理系统注册</h1>
<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>
<label for="email">邮箱:</label>
<input type="email" id="email" name="email" required>
<input type="submit" value="注册">
</form>
</body>
</html>
```
在这个示例中,我们使用了CSS来添加背景颜色、字体样式和表单样式。具体来说,我们使用了`body`选择器来设置整个页面的背景颜色和字体样式,使用了`form`选择器来设置表单的背景颜色、内边距、边框半径和宽度,并使用了`input[type="text"]`、`input[type="password"]`和`input[type="email"]`选择器来设置表单输入字段的样式。我们还使用了`label`选择器来设置标签的样式,使用了`input[type="submit"]`选择器来设置提交按钮的样式,并使用了`:hover`伪类来设置鼠标悬停时的样式。
希望这可以帮到你。如果你有任何问题,请随时问我。
相关推荐
![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)
![](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)