布一个HTML登录页面,LOGO图片,有用户名,密码,记住我。用现代流行样式。
时间: 2023-05-23 08:01:08 浏览: 45
好的,这个问题我可以回答。以下是一个简单的HTML登录页面,包括LOGO图片,用户名,密码和记住我选项,使用了现代流行样式:
```
<!DOCTYPE html>
<html>
<head>
<title>Login Page</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
}
.container {
max-width: 400px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
padding: 40px;
background-color: #fff;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
border-radius: 4px;
box-sizing: border-box;
margin-top: 80px;
}
h1 {
font-size: 24px;
margin-bottom: 30px;
color: #333;
}
form {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}
.input-container {
width: 100%;
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 5px;
font-size: 16px;
color: #333;
}
input {
width: 100%;
padding: 10px 15px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 16px;
color: #666;
box-sizing: border-box;
background-color: #f6f6f6;
outline: none;
}
input:focus {
border-color: #333;
}
.checkbox-container {
display: flex;
align-items: center;
margin-bottom: 20px;
}
.checkbox-label {
font-size: 14px;
color: #666;
margin-left: 10px;
}
button {
background-color: #333;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.2s ease;
}
button:hover {
background-color: #111;
}
</style>
</head>
<body>
<div class="container">
<img src="https://www.example.com/logo.png" alt="Logo" height="80">
<h1>Login</h1>
<form>
<div class="input-container">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
</div>
<div class="input-container">
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
</div>
<div class="checkbox-container">
<input type="checkbox" id="remember" name="remember">
<label for="remember" class="checkbox-label">Remember me</label>
</div>
<button type="submit">Log In</button>
</form>
</div>
</body>
</html>
```
希望这个例子能够对你有所帮助!