我是靠谱客的博主 合适狗,这篇文章主要介绍前端 页面自定义滚动条,现在分享给大家,希望可以做个参考。

示例
1062015-20190818181007811-75606317.png

代码

<div class="p-detail__table-scrollbar">
<div style="width: 3300px;height: 10px;">
</div>
</div>
<style>
.p-detail__table-scrollbar{
overflow-x: scroll;
overflow-y: hidden;
}
.p-detail__table-scrollbar::-webkit-scrollbar{
width:1px;
height: 10px;
background-color: #ccc;
border-radius: 5px;
}
.p-detail__table-scrollbar::-webkit-scrollbar-track{
border-radius: 5px;
}
.p-detail__table-scrollbar::-webkit-scrollbar-thumb{
border-radius: 5px;
background-color: #333;
}
</style>

转载于:https://www.cnblogs.com/apeandcat/p/11373299.html

最后

以上就是合适狗最近收集整理的关于前端 页面自定义滚动条的全部内容,更多相关前端内容请搜索靠谱客的其他文章。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部