From f3e47b16d0d6e246f7e2584c6e2c418877c763d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E5=B0=8F=E5=A2=A8?= <2291200076@qq.com> Date: Fri, 29 Jul 2022 17:48:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E9=A1=B5=E9=9D=A2=E5=90=8E?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=EF=BC=8C=E4=B8=8B=E6=96=B9=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E6=A0=8Factive=E6=B2=A1=E6=9C=89=E6=9B=B4=E6=96=B0=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/bilibili_rank.html | 5 ++++- index.html | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/html/bilibili_rank.html b/html/bilibili_rank.html index b555643..5890901 100644 --- a/html/bilibili_rank.html +++ b/html/bilibili_rank.html @@ -20,6 +20,9 @@ td { font-size: 12px; + + max-width: 160px; + word-wrap:break-word; } @@ -358,7 +361,7 @@ ${hotBand.up_from_v2} - ${JSON.stringify(hotBand.others)} +
${JSON.stringify(hotBand.others)}
`); } str.push(``); diff --git a/index.html b/index.html index 6d7b335..ef9d0b9 100644 --- a/index.html +++ b/index.html @@ -170,6 +170,8 @@ // 切换页面 switchPage(target, false); // 更新下方导航栏选中状态 + let oldActive = document.querySelector('.active') + if (oldActive) oldActive.classList.remove('active'); navbarItems.forEach(item => { if (item.getAttribute('targetPage') === target) { item.classList.add('active');