Skip to content

Commit dbb8618

Browse files
committed
新增对滚动条的支持|即ScrollBar类
1 parent 859ce0e commit dbb8618

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

Template/Public/Style/PublicCSS.css

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @Date : 2020-10-18 10:52:43
33
* @Author : MemoryShadow
44
* @LastEditors : MemoryShadow
5-
* @LastEditTime : 2021-01-07 23:00:40
5+
* @LastEditTime : 2021-02-24 12:55:57
66
* @Description : 基础组件css样式
77
*/
88

@@ -81,4 +81,29 @@ div#bottom {
8181
bottom: 1px;
8282
left: 0px;
8383
width: 100%;
84+
}
85+
86+
/**
87+
* 启用滚动条自定义样式
88+
*/
89+
90+
.ScrollBar::-webkit-scrollbar {
91+
/*滚动条整体样式*/
92+
width: 5px;
93+
/*高宽分别对应横竖滚动条的尺寸*/
94+
height: 5px;
95+
}
96+
97+
.ScrollBar::-webkit-scrollbar-thumb {
98+
/*滚动条里面小方块*/
99+
border-radius: 3px;
100+
-webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
101+
background: #aaa;
102+
}
103+
104+
.ScrollBar::-webkit-scrollbar-track {
105+
/*滚动条里面轨道*/
106+
-webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
107+
border-radius: 3px;
108+
background: #fff;
84109
}

0 commit comments

Comments
 (0)