纯css修改浏览器scrollbar滚动条样式
文章目录
使用css修改浏览器滚动条样式

::-webkit-scrollbar {
width: .5rem;
height: .5rem;
background: hsla(0, 0%, 100%, 0.6);
}
::-webkit-scrollbar-track {
border-radius: 0;
}
::-webkit-scrollbar-thumb {
border-radius: 0;
background-color: rgba(95,95,95,.4);
transition: all .2s;
border-radius: .5rem;
&:hover {
background-color: rgba(95,95,95, .7);
}
}

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论