// 修改滚动条样式
// scrollTypeClass 为div class类名,如果设置浏览器全局滚动条样式.scrollTypeClass去除
.scrollTypeClass::-webkit-scrollbar {
width: 8px; /* 设置滚动条宽度为8像素 */
background-color: #f5f5f5; /* 设置滚动条背景颜色为#f5f5f5 */
border-radius: 4px; /* 设置滚动条边角半径为4像素 */
}
.scrollTypeClass::-webkit-scrollbar-thumb {
background-color: #999; /* 设置滑块背景颜色为#999 */
border-radius: 4px; /* 设置滑块边角半径为4像素 */
}
.scrollTypeClass::-webkit-scrollbar-track {
background-color: #eaeaea; /* 设置轨道背景颜色为#eaeaea */
}
CSS-修改滚动条样式
最新推荐文章于 2024-06-17 09:00:23 发布