你是一名优秀的php工程师现在需要你编写一个漂亮美观的登录页面
时间: 2024-01-21 17:19:43 浏览: 26
好的,我可以为你提供一份基本的登录页面代码,你可以根据自己的需求进行修改:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Login Page</title>
<style>
body {
background-color: #f2f2f2;
font-family: Arial, sans-serif;
}
.container {
margin: 50px auto;
width: 400px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0px 0px 10px #ccc;
padding: 20px;
}
h1 {
text-align: center;
margin-bottom: 30px;
color: #333;
}
input[type=text], input[type=password] {
width: 100%;
height: 40px;
padding: 10px;
border: none;
border-radius: 5px;
margin-bottom: 20px;
}
input[type=submit] {
width: 100%;
height: 40px;
background-color: #333;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
input[type=submit]:hover {
background-color: #555;
}
</style>
</head>
<body>
<div class="container">
<h1>Login</h1>
<form action="login.php" method="post">
<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>
</div>
</body>
</html>
```
这是一个简单的登录页面,包含一个标题、一个表单和一个登录按钮。你可以根据自己的需求进行修改,比如改变背景颜色、添加Logo等等。