编写一个登录页面的html,登录页面的背景是海贼王的路飞
时间: 2023-12-22 12:00:47 浏览: 41
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Login Page</title>
<style>
body {
background-image: url('https://i.imgur.com/3zXn1vT.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
height: 100vh;
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
color: white;
display: flex;
align-items: center;
justify-content: center;
}
form {
background-color: rgba(0, 0, 0, 0.7);
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.5);
max-width: 400px;
width: 100%;
}
h1 {
font-size: 2em;
margin: 0 0 20px;
text-align: center;
}
label {
display: block;
margin-bottom: 10px;
font-size: 1.2em;
}
input[type="text"], input[type="password"] {
padding: 10px;
border-radius: 5px;
border: none;
width: 100%;
margin-bottom: 20px;
font-size: 1.2em;
}
input[type="submit"] {
padding: 10px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1.2em;
transition: background-color 0.3s ease-in-out;
}
input[type="submit"]:hover {
background-color: #3e8e41;
}
</style>
</head>
<body>
<form method="POST" action="login.php">
<h1>Login Form</h1>
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
<input type="submit" value="Login">
</form>
</body>
</html>
相关推荐
![htm](https://img-home.csdnimg.cn/images/20210720083646.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)