示例
前端  页面自定义滚动条

代码

<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>

相关文章:

  • 2022-12-23
  • 2021-11-30
  • 2021-11-27
  • 2022-01-14
  • 2022-02-18
  • 2021-07-18
  • 2021-08-11
猜你喜欢
  • 2021-09-30
  • 2021-04-09
  • 2022-12-23
  • 2022-02-12
相关资源
相似解决方案