From 7f5c746be68929093405ca39ccead0732bebc858 Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Sat, 22 Nov 2025 08:55:35 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E8=8B=B1=E9=9B=84=E6=8E=92=E5=90=8D=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=EF=BC=8C=E7=A1=AE=E4=BF=9D=E8=A1=A8=E5=A4=B4?= =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E4=B8=8D=E5=8A=A8=EF=BC=8C=E5=8F=AA=E6=9C=89?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E5=86=85=E5=AE=B9=E5=8F=AF=E4=BB=A5=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/BattleRanking.vue | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/views/BattleRanking.vue b/src/views/BattleRanking.vue index 9b5b009..ff7945e 100644 --- a/src/views/BattleRanking.vue +++ b/src/views/BattleRanking.vue @@ -1988,6 +1988,16 @@ onUnmounted(() => { /* 禁止横向滚动 */ overflow-y: auto; /* 允许纵向滚动 */ + /* 隐藏移动端滚动条 */ + -ms-overflow-style: none; + scrollbar-width: none; + display: flex; + flex-direction: column; + } + + /* 隐藏WebKit浏览器移动端滚动条 */ + .rank-table::-webkit-scrollbar { + display: none; } /* 移动端英雄排名列表滚动设置 */ @@ -1996,18 +2006,34 @@ onUnmounted(() => { /* 禁止横向滚动 */ overflow-y: auto !important; /* 允许纵向滚动 */ + /* 确保英雄排名列表隐藏滚动条 */ + -ms-overflow-style: none; + scrollbar-width: none; + display: flex; + flex-direction: column; + } + + .individual-rankings-container .rank-table::-webkit-scrollbar { + display: none; } .table-header { font-size: 1rem; padding: 8px 6px; min-width: 500px; + /* 固定表头,防止滚动时移动 */ + position: sticky; + top: 0; + z-index: 10; + background-color: rgba(255, 255, 255, 0.95); } .table-row { font-size: 0.9rem; padding: 8px 6px; min-width: 500px; + /* 确保行内容不会被截断 */ + overflow: visible; } /* 冠军部分调整 */