-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path右侧滚动条.html
46 lines (40 loc) · 1.03 KB
/
右侧滚动条.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
body::-webkit-scrollbar {
width: 13px;
/*滚动条宽度*/
}
/*定义滚动条轨道 内阴影+圆角*/
body::-webkit-scrollbar-track {
border-radius: 0;
/*滚动条的背景区域的圆角*/
background-color: #47ad47;
/*滚动条的背景颜色*/
}
/*定义滑块 内阴影+圆角*/
body::-webkit-scrollbar-thumb {
border-radius: 6px;
/*滚动条的圆角*/
background-color: darkorange;
/*滚动条的背景颜色*/
}
body {
height: 20000px;
}
</style>
</head>
<body>
<div style="height:200px;background:rgb(247, 112, 213);"></div>
<textarea name="" id="" cols="30" rows="10" style="max-width:100%;"></textarea>
<transition-group>
11111111111111
</transition-group>
</body>
</html>