学习第一天完
This commit is contained in:
187
前端Web(HTML+CSS)/15.tlias案例-表格数据展示区.html
Normal file
187
前端Web(HTML+CSS)/15.tlias案例-表格数据展示区.html
Normal file
@@ -0,0 +1,187 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Tlias智能学习辅助系统</title>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* 顶栏样式 */
|
||||
.header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background-color: #f1f1f1;
|
||||
padding: 10px 20px;
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
/* 加大加粗标题 */
|
||||
.header h1 {
|
||||
margin: 0;
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* 文本链接样式 */
|
||||
.header a {
|
||||
text-decoration: none;
|
||||
color: #333;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* 搜索表单区域 */
|
||||
.search-form {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 20px;
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
||||
/* 表单控件样式 */
|
||||
.search-form input[type="text"],
|
||||
.search-form select {
|
||||
margin-right: 10px;
|
||||
padding: 5px 10px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 4px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
/* 按钮样式 */
|
||||
.search-form button {
|
||||
padding: 5px 15px;
|
||||
margin-left: 10px;
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* 清空按钮样式 */
|
||||
.search-form button.clear {
|
||||
background-color: #6c757d;
|
||||
}
|
||||
|
||||
.table {
|
||||
min-width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 0 20px;
|
||||
}
|
||||
|
||||
/* 设置表格单元格边框 */
|
||||
.table td,
|
||||
.table th {
|
||||
border: 1px solid #ddd;
|
||||
padding: 8px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
object-fit: cover;
|
||||
border-radius: 50%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- 顶栏 -->
|
||||
<div class="header">
|
||||
<h1>Tlias智能学习辅助系统</h1>
|
||||
<a href="#">退出登录</a>
|
||||
</div>
|
||||
|
||||
<!-- 搜索表单区域 -->
|
||||
<form class="search-form" action="#" method="post">
|
||||
<input type="text" name="name" placeholder="姓名" />
|
||||
<select name="gender">
|
||||
<option value="">性别</option>
|
||||
<option value="1">男</option>
|
||||
<option value="2">女</option>
|
||||
</select>
|
||||
<select name="job">
|
||||
<option value="">职位</option>
|
||||
<option value="1">班主任</option>
|
||||
<option value="2">讲师</option>
|
||||
<option value="3">学工主管</option>
|
||||
<option value="4">教研主管</option>
|
||||
<option value="5">咨询师</option>
|
||||
</select>
|
||||
<button type="submit">查询</button>
|
||||
<button type="reset" class="clear">清空</button>
|
||||
</form>
|
||||
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>姓名</th>
|
||||
<th>性别</th>
|
||||
<th>头像</th>
|
||||
<th>职位</th>
|
||||
<th>入职日期</th>
|
||||
<th>最后操作时间</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>令狐冲</td>
|
||||
<td>男</td>
|
||||
<td><img src="https://via.placeholder.com/50" alt="令狐冲" class="avatar"></td>
|
||||
<td>讲师</td>
|
||||
<td>2021-03-15</td>
|
||||
<td>2023-07-30T12:00:00Z</td>
|
||||
<td class="btn-group">
|
||||
<button>编辑</button>
|
||||
<button>删除</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>任盈盈</td>
|
||||
<td>女</td>
|
||||
<td><img src="https://via.placeholder.com/50" alt="任盈盈" class="avatar"></td>
|
||||
<td>学工主管</td>
|
||||
<td>2020-04-10</td>
|
||||
<td>2023-07-29T15:00:00Z</td>
|
||||
<td class="btn-group">
|
||||
<button>编辑</button>
|
||||
<button>删除</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>岳不群</td>
|
||||
<td>男</td>
|
||||
<td><img src="https://via.placeholder.com/50" alt="岳不群" class="avatar"></td>
|
||||
<td>教研主管</td>
|
||||
<td>2019-01-01</td>
|
||||
<td>2023-07-30T10:00:00Z</td>
|
||||
<td class="btn-group">
|
||||
<button>编辑</button>
|
||||
<button>删除</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>宁中则</td>
|
||||
<td>女</td>
|
||||
<td><img src="https://via.placeholder.com/50" alt="宁中则" class="avatar"></td>
|
||||
<td>班主任</td>
|
||||
<td>2018-06-01</td>
|
||||
<td>2023-07-29T09:00:00Z</td>
|
||||
<td class="btn-group">
|
||||
<button>编辑</button>
|
||||
<button>删除</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user