首页 前端知识 div中内容滚动,并隐藏滚动条

div中内容滚动,并隐藏滚动条

2024-02-13 10:02:29 前端知识 前端哥 915 813 我要收藏
<div className={styles.scrollbar}>
<div className={styles.scrollBarChartArea}>
<ScrollBarChart />
</div>
</div>
<div className={styles.bottomLine} />
</div>
复制
.scrollBarChartArea {
top: 405px;
width: 465px;
height: 300px;
position: absolute;
left: 1445px;
overflow: hidden auto;
}
.scrollbar {
*::-webkit-scrollbar-track {
background-color: #fff;
}
*::-webkit-scrollbar {
background-color: #57b2ff;
height: 0;
width: 0;
}
*::-webkit-scrollbar-thumb {
background: #57b2ff;
border-radius: 4px;
height: 0;
width: 0;
}
}
复制
转载请注明出处或者链接地址:https://www.qianduange.cn//article/1899.html
评论
会员中心 联系我 留言建议 回顶部
复制成功!