From 5cc9cc206907afdce5646bbabcf42e1adbf36072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E9=A3=9E=E6=B4=8B?= <15778543+xufeiyang6017@user.noreply.gitee.com> Date: Sat, 6 Dec 2025 15:38:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=85=A8=E5=B1=80=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E6=9D=A1=E9=9A=90=E8=97=8F=E6=A0=B7=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E7=A1=AE=E4=BF=9D=E6=89=80=E6=9C=89=E6=BB=9A=E5=8A=A8=E6=9D=A1?= =?UTF-8?q?=E4=B8=8D=E5=8F=AF=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.wxss | 47 ++++++++++++++++++++++++++++++----------------- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/app.wxss b/app.wxss index b3051e0..d1a1e47 100644 --- a/app.wxss +++ b/app.wxss @@ -1,30 +1,43 @@ /**app.wxss**/ -/* 隐藏全局滚动条 */ -::-webkit-scrollbar { - display: none; - width: 0; - height: 0; - color: transparent; +/* 隐藏全局滚动条 - 全面覆盖 */ +::-webkit-scrollbar, +*::-webkit-scrollbar { + display: none !important; + width: 0 !important; + height: 0 !important; + color: transparent !important; + background: transparent !important; } -/* 隐藏scroll-view组件的滚动条 */ -scroll-view { +/* 隐藏所有可滚动元素的滚动条 */ +page, +view, +scroll-view, +textarea, +picker-view, +::-webkit-scrollbar-track, +::-webkit-scrollbar-thumb, +::-webkit-scrollbar-button, +::-webkit-scrollbar-corner { -webkit-overflow-scrolling: touch; overflow-scrolling: touch; + scrollbar-width: none !important; + -ms-overflow-style: none !important; + -webkit-scrollbar: none !important; } -scroll-view::-webkit-scrollbar { - display: none; -} - -/* 隐藏页面滚动条 */ +/* 确保页面级滚动条隐藏 */ page { - -webkit-overflow-scrolling: touch; - overflow-scrolling: touch; + overflow: auto !important; + scrollbar-width: none !important; + -ms-overflow-style: none !important; } -page::-webkit-scrollbar { - display: none; +/* 针对iOS设备的特殊处理 */ +@media screen and (max-width: 768px) { + ::-webkit-scrollbar { + display: none !important; + } } .container { display: flex;