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; +} +