mirror of
https://github.com/ZSCNetSupportDept/scheduler.git
synced 2025-10-28 20:45:05 +08:00
添加成员的颜色标记
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<h1 align=center>今日值班表</h1>
|
<h1 align=center>今日值班表</h1>
|
||||||
<div align=center>
|
<div align=center>
|
||||||
<button hx-get="/api/getAssignment" align=center hx-swap="outerHTML"> 点我!</button>
|
<button hx-get="/api/getAssignment" hx-swap="outerHTML"> 点我!</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -7,12 +7,17 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{{end}}
|
{{end}}
|
||||||
</table>
|
</table>
|
||||||
<i>备注:每个片区的第一个成员为该片区的负责人</i>
|
|
||||||
|
<i class="table_notes"><span class="ZoneHead"></span>片区负责人<br></i>
|
||||||
|
<i class="table_notes"><span class="Moderator"></span>管理层<br></i>
|
||||||
|
<i class="table_notes"><span class="SwitchOrRepay"></span>换班/补班<br></i>
|
||||||
|
<i class="table_notes"><span class="Volunteering"></span>蹭班<br></i>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
|
margin:auto
|
||||||
}
|
}
|
||||||
th, td {
|
th, td {
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
@@ -23,4 +28,39 @@
|
|||||||
background-color: #b3d9f7;
|
background-color: #b3d9f7;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
td:nth-child(2), th:nth-child(2) {
|
||||||
|
background-color: #55ffaa
|
||||||
|
}
|
||||||
|
.ZoneHead {
|
||||||
|
display: inline-block; /* 让颜色块和文字在同一行显示 */
|
||||||
|
width: 1em; /* 设置颜色块的宽度为1个字的宽度 */
|
||||||
|
height: 1em; /* 设置颜色块的高度为1个字的高度 */
|
||||||
|
background-color: #55ffaa; /* 设置颜色块的背景颜色 */
|
||||||
|
vertical-align: middle; /* 让颜色块垂直居中 */
|
||||||
|
align-self: left;
|
||||||
|
}
|
||||||
|
.Moderator {
|
||||||
|
display: inline-block; /* 让颜色块和文字在同一行显示 */
|
||||||
|
width: 1em; /* 设置颜色块的宽度为1个字的宽度 */
|
||||||
|
height: 1em; /* 设置颜色块的高度为1个字的高度 */
|
||||||
|
background-color: #ffa0c9; /* 设置颜色块的背景颜色 */
|
||||||
|
vertical-align: middle; /* 让颜色块垂直居中 */
|
||||||
|
}
|
||||||
|
.SwitchOrRepay{
|
||||||
|
display: inline-block; /* 让颜色块和文字在同一行显示 */
|
||||||
|
width: 1em; /* 设置颜色块的宽度为1个字的宽度 */
|
||||||
|
height: 1em; /* 设置颜色块的高度为1个字的高度 */
|
||||||
|
background-color: #fff6b5; /* 设置颜色块的背景颜色 */
|
||||||
|
vertical-align: middle; /* 让颜色块垂直居中 */
|
||||||
|
}
|
||||||
|
.Volunteering{
|
||||||
|
display: inline-block; /* 让颜色块和文字在同一行显示 */
|
||||||
|
width: 1em; /* 设置颜色块的宽度为1个字的宽度 */
|
||||||
|
height: 1em; /* 设置颜色块的高度为1个字的高度 */
|
||||||
|
background-color: #c0ff85; /* 设置颜色块的背景颜色 */
|
||||||
|
vertical-align: middle; /* 让颜色块垂直居中 */
|
||||||
|
}
|
||||||
|
.table_notes{
|
||||||
|
align-items:left
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user