From 846470cd6af6e2d706eefdf3ba991efa82d5f13f Mon Sep 17 00:00:00 2001 From: duan Date: Tue, 9 Aug 2022 08:32:23 +0800 Subject: [PATCH] =?UTF-8?q?style(src/styles/index.scss):=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=BB=9A=E5=8A=A8=E6=9D=A1=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/index.scss | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/styles/index.scss b/src/styles/index.scss index c919a48..42635c1 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -69,3 +69,23 @@ div:focus { font-weight: 400; color: #000000; } + + +/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/ +::-webkit-scrollbar { + width: 6px; + /*滚动条宽度*/ + height: 12px; + /*滚动条高度*/ + background-color: white; +} + +/*定义滑块 内阴影+圆角*/ +::-webkit-scrollbar-thumb { + box-shadow: inset 0 0 0px white; + -webkit-box-shadow: inset 0 0 0px white; + background-color: rgb(193, 193, 193); + /*滚动条的背景颜色*/ + border-radius: 20px; +} +