diff --git a/src/styles/global.less b/src/styles/global.less index c8c8244..78a3783 100644 --- a/src/styles/global.less +++ b/src/styles/global.less @@ -81,6 +81,25 @@ body { -moz-osx-font-smoothing: grayscale; } +* { + &::-webkit-scrollbar { + /*滚动条整体样式*/ + width: 6px; + height: 6px; + background-color: #F5F6F7; + } + + &::-webkit-scrollbar-thumb { + /*滚动条里面小方块*/ + background-color: rgba(0, 0, 0, 0.12); + border-radius: 6px; + } + + // firefox + scrollbar-color: rgba(0, 0, 0, 0.12) rgb(245, 246, 247); + scrollbar-width: thin; + } + a, .green { text-decoration: none;