1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
| html,
| body {
| font-size: 16px;
|
|
| div {
| scrollbar-width: thin;
| }
|
| }
|
|
| ul {
| margin: 0;
| padding: 0;
|
| li {
| list-style: none;
| }
| }
|
|
| .deblurring {
| image-rendering: -moz-crisp-edges;
| image-rendering: -o-crisp-edges;
| image-rendering: -webkit-optimize-contrast;
| image-rendering: crisp-edges;
| -ms-interpolation-mode: nearest-neighbor;
| }
|
|
|
| /*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
| ::-webkit-scrollbar {
| width: 16px;
| /*滚动条宽度*/
| height: 16px;
| /*滚动条高度*/
| }
|
| /*定义滚动条轨道 内阴影+圆角*/
| ::-webkit-scrollbar-track {
| -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
| border-radius: 10px;
| /*滚动条的背景区域的圆角*/
| background-color: #fff;
| /*滚动条的背景颜色*/
| }
|
| /*定义滑块 内阴影+圆角*/
| ::-webkit-scrollbar-thumb {
| border-radius: 10px;
| /*滚动条的圆角*/
| -webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, .9);
| background-color: green;
| /*滚动条的背景颜色*/
| }
|
|