.main-block { height: calc(100vh - 250px); overflow: auto; min-width: 1140px; &::-webkit-scrollbar { width: 6px; // height: 10px; // 高度写不写,都不影响,因为会根据内容的长度自动计算 } &::-webkit-scrollbar-thumb { background: #ccc; // 滑块颜色 border-radius: 5px; // 滑块圆角 } }
右侧滑条/加滑块
最新推荐文章于 2024-07-11 17:14:12 发布