写一个背景是炫酷星空的登录页html
时间: 2023-09-01 21:07:41 浏览: 48
我可以为您提供一个背景为炫酷星空的登录页HTML代码:
```
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>炫酷星空登录页</title>
<style type="text/css">
body {
background-color: #000000;
background-image: url("stars.jpg");
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
font-family: Arial, sans-serif;
color: #ffffff;
}
h1 {
text-align: center;
}
form {
margin: 50px auto 0px;
width: 350px;
background-color: rgba(255,255,255,0.5);
border-radius: 10px;
padding: 20px;
box-shadow: 5px 5px 15px #000000;
}
label {
display: block;
margin: 20px 0 5px;
font-size: 18px;
font-weight: bold;
}
input[type="text"], input[type="password"] {
width: 100%;
padding: 10px;
border: none;
border-radius: 5px;
margin-bottom: 20px;
font-size: 16px;
}
button {
display: block;
margin: 20px auto 0;
background-color: #4CAF50;
color: #ffffff;
border: none;
border-radius: 5px;
padding: 10px;
font-size: 18px;
cursor: pointer;
}
</style>
</head>
<body>
<h1>炫酷星空登录页</h1>
<form>
<label for="username">用户名:</label>
<input type="text" id="username" name="username">
<label for="password">密码:</label>
<input type="password" id="password" name="password">
<button type="submit">登录</button>
</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)