我是靠谱客的博主 细腻彩虹,这篇文章主要介绍element-UI修改滚动条样式,现在分享给大家,希望可以做个参考。

element-ui修改滚动条的样式
话不多说直接上代码

::-webkit-scrollbar {
  width: 10px;
  height: 5px;
  border-radius:15px;
  -webkit-border-radius:  15px;
}
::-webkit-scrollbar-track-piece {
  background-color: #beccff;
  border-radius:15px;
  -webkit-border-radius:  15px;
}
::-webkit-scrollbar-thumb:vertical {
  height: 5px;
  background-color:#4f61ff;
  border-radius: 15px;
  -webkit-border-radius:  15px;
}
::-webkit-scrollbar-thumb:horizontal {
  width: 7px;
  background-color:#4f61ff;
  border-radius:  15px;  
  -webkit-border-radius: 15px;
}

之前是
在这里插入图片描述
改后是在这里插入图片描述
原著是添加链接描述

最后

以上就是细腻彩虹最近收集整理的关于element-UI修改滚动条样式的全部内容,更多相关element-UI修改滚动条样式内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(134)

评论列表共有 0 条评论

立即
投稿
返回
顶部