写一个精美的html后台登录模板
<!DOCTYPE html>
<html>
<head>
<title>后台登录</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
}
.container {
width: 400px;
margin: 0 auto;
margin-top: 100px;
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
h2 {
text-align: center;
color: #333;
}
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
font-weight: bold;
margin-bottom: 5px;
}
.form-group input {
width: 100%;
padding: 8px;
border-radius: 3px;
border: 1px solid #ccc;
}
.form-group button {
width: 100%;
padding: 8px;
border-radius: 3px;
background-color: #333;
color: #fff;
border: none;
}
</style>
</head>
<body>
<div class="container">
<h2>后台登录</h2>
<form action="login.php" method="POST">
<div class="form-group">
<label for="username">用户名:</label>
<input type="text" id="username" name="username" required>
</div>
<div class="form-group">
<label for="password">密码:</label>
<input type="password" id="password" name="password" required>
</div>
<div class="form-group">
<button type="submit">登录</button>
</div>
</form>
</div>
</body>
</html
AI 优化版
原文地址:https://www.cveoy.top/t/topic/hD1T 著作权归作者所有。请勿转载和采集!