帮我制定一个学生宿舍管理系统登录界面的index.html文件
时间: 2023-07-15 10:10:01 浏览: 35
好的,以下是一个简单的学生宿舍管理系统登录界面的index.html文件:
```
<!DOCTYPE html>
<html>
<head>
<title>学生宿舍管理系统登录</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
/* 设置页面样式 */
body {
font-family: Arial, Helvetica, sans-serif;
background-color: #f2f2f2;
}
/* 设置登录框样式 */
.login-box {
width: 300px;
background-color: white;
margin: 100px auto;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
/* 设置表单元素样式 */
input[type=text], input[type=password] {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
/* 设置登录按钮样式 */
button {
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
/* 设置登录按钮悬停样式 */
button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div class="login-box">
<h2>学生宿舍管理系统</h2>
<form>
<label for="username">用户名</label>
<input type="text" id="username" name="username" placeholder="请输入用户名">
<label for="password">密码</label>
<input type="password" id="password" name="password" placeholder="请输入密码">
<button type="submit">登录</button>
</form>
</div>
</body>
</html>
```
你可以根据自己的需求进行修改。