Pixel/Web/login.html

60 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>登录页面</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.container {
border: 1px solid #ccc;
border-radius: 8px;
padding: 20px;
width: 300px;
text-align: center;
}
label {
font-weight: bold;
display: block;
margin-bottom: 10px;
}
input[type="password"] {
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
button {
background-color: #4CAF50;
color: white;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<form action="/login" method="post">
<div class="container">
<label for="password"><b>密码</b></label>
<input type="password" placeholder="输入密码" name="passwd" required>
<button type="submit">登录</button>
</div>
</form>
</body>
</html>