帮我生成一个华丽的登录页,颜色为灰色,字体为宋体,背景为白色
时间: 2023-03-31 19:02:52 浏览: 89
好的,我可以为您生成一个华丽的登录页,颜色为灰色,字体为宋体,背景为白色。您可以使用以下代码实现:
<!DOCTYPE html>
<html>
<head>
<title>登录页</title>
<style type="text/css">
body {
background-color: white;
font-family: 宋体;
}
h1 {
color: grey;
text-align: center;
margin-top: 50px;
}
form {
margin-top: 50px;
text-align: center;
}
input[type=text], input[type=password] {
padding: 10px;
margin: 10px;
border: none;
border-radius: 5px;
box-shadow: 1px 1px 1px grey;
}
input[type=submit] {
padding: 10px 20px;
margin: 10px;
background-color: grey;
color: white;
border: none;
border-radius: 5px;
box-shadow: 1px 1px 1px grey;
cursor: pointer;
}
</style>
</head>
<body>
<h1>登录页</h1>
<form>
<label for="username">用户名:</label>
<input type="text" id="username" name="username"><br>
<label for="password">密码:</label>
<input type="password" id="password" name="password"><br>
<input type="submit" value="登录">
</form>
</body>
</html>
相关推荐
![](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)