//修改整个滚动条的样式并添加宽高
::-webkit-scrollbar {
width: 12px;
height: 60px;
background-color: transparent;
cursor: pointer;
}
//修改滚动条上的滚动滑块样式
div::-webkit-scrollbar-thumb{
height: 60px;
background-color: #eee;
border-radius: 10px;
}
//去除滚动条
div::-webkit-scrollbar-thumb{
display: none;
}
pc修改滚动条的样式(最好在<style></style>中使用不要加上其他东西)
于 2022-06-02 12:03:37 首次发布