mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-26 02:25:06 +08:00
fix: stats.html
This commit is contained in:
parent
7e302922c5
commit
e7765a4513
@ -10,13 +10,9 @@
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: 'MiSans', serif;
|
font-family: 'MiSans', serif;
|
||||||
/* 使背景图不重复 */
|
|
||||||
background-repeat: repeat-y;
|
background-repeat: repeat-y;
|
||||||
/* 设置背景图居中裁剪 */
|
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
/* 使背景图相对于视窗居中 */
|
|
||||||
background-position: center;
|
background-position: center;
|
||||||
/* 设置背景图 */
|
|
||||||
background-image: url('img/bg1.jpg');
|
background-image: url('img/bg1.jpg');
|
||||||
color: white;
|
color: white;
|
||||||
// 上10px,左右10px,下0px
|
// 上10px,左右10px,下0px
|
||||||
@ -41,7 +37,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#bot-info {
|
#bot-info {
|
||||||
// 垂直方向居中
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,7 +68,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#bot-tag {
|
#bot-tag {
|
||||||
/* 这将使标签在容器宽度满时自动换行 */
|
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@ -91,8 +85,8 @@
|
|||||||
content: "|";
|
content: "|";
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
height: 50%; /* 调整这个值来改变竖线的高度 */
|
height: 50%;
|
||||||
line-height: 50%; /* 使竖线垂直居中 */
|
line-height: 50%;
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -142,7 +136,7 @@
|
|||||||
document.body.style.backgroundImage = `url(./img/${bgs[Math.floor(Math.random() * bgs.length)]})`;
|
document.body.style.backgroundImage = `url(./img/${bgs[Math.floor(Math.random() * bgs.length)]})`;
|
||||||
|
|
||||||
let botTags = JSON.parse(document.getElementById('botTag').innerText);
|
let botTags = JSON.parse(document.getElementById('botTag').innerText);
|
||||||
// 获取tag,是字符串数组,将其处理后变成一个一个的span标签,并且class为tag
|
|
||||||
botTags.forEach(tag => {
|
botTags.forEach(tag => {
|
||||||
let tagSpan = document.createElement('span');
|
let tagSpan = document.createElement('span');
|
||||||
tagSpan.innerText = tag;
|
tagSpan.innerText = tag;
|
||||||
|
Loading…
Reference in New Issue
Block a user