From c285e000cc947738863c7663d1dbcec9c428da5e Mon Sep 17 00:00:00 2001 From: JustSong Date: Sat, 16 Mar 2024 16:16:44 +0800 Subject: [PATCH] chore: remove default scroll bar --- web/air/src/index.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/web/air/src/index.css b/web/air/src/index.css index 8e53624e..271f14e2 100644 --- a/web/air/src/index.css +++ b/web/air/src/index.css @@ -103,3 +103,14 @@ code { display: none !important; } } + + +/* 隐藏浏览器默认的滚动条 */ +body { + overflow: hidden; +} + +/* 自定义滚动条样式 */ +body::-webkit-scrollbar { + width: 0; /* 隐藏滚动条的宽度 */ +} \ No newline at end of file