样式修改

This commit is contained in:
yulixing 2019-11-25 19:33:12 +08:00
parent 66a1ede58b
commit 7c57542973

View File

@ -85,6 +85,17 @@
.panel table tr:nth-child(even) {
background-color: #f3f3f3;
}
.panel .part {
margin-bottom: 16px;
}
.panel .part .title {
margin-bottom: 8px;
font-weight: 700;
}
.panel .part .content span:nth-child(2n) {
margin-right: 16px;
}
</style>
</head>
<body>
@ -96,19 +107,17 @@
<span>{{ "各榜单TAGS分布(前三)" }}</span>
</div>
<div class="panel">
<table>
<tbody>
{% for key in tags.keys() %}
<tr>
<td>{{ key }}</td>
<div class="part">
<div class="title">{{ key }}</div>
<div class="content">
{% for one in tags.get(key) %}
<td>{{ one[0] }}</td>
<td>{{ one[1] }}</td>
<span>{{ one[0] }}</span>
<span>{{ one[1] }}</span>
{% endfor %}
</tr>
</div>
</div>
{% endfor %}
</tbody>
</table>
</div>
</div>