样式修改

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) { .panel table tr:nth-child(even) {
background-color: #f3f3f3; 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> </style>
</head> </head>
<body> <body>
@ -96,19 +107,17 @@
<span>{{ "各榜单TAGS分布(前三)" }}</span> <span>{{ "各榜单TAGS分布(前三)" }}</span>
</div> </div>
<div class="panel"> <div class="panel">
<table> {% for key in tags.keys() %}
<tbody> <div class="part">
{% for key in tags.keys() %} <div class="title">{{ key }}</div>
<tr> <div class="content">
<td>{{ key }}</td> {% for one in tags.get(key) %}
{% for one in tags.get(key) %} <span>{{ one[0] }}</span>
<td>{{ one[0] }}</td> <span>{{ one[1] }}</span>
<td>{{ one[1] }}</td>
{% endfor %}
</tr>
{% endfor %} {% endfor %}
</tbody> </div>
</table> </div>
{% endfor %}
</div> </div>
</div> </div>