html:
<div class="change-content">
<div class="content-wrap" >
很多内容
</div>
</div>
css:
.stable-nav {
/*固定宽度*/
width: 2.37rem;
box-shadow: 0rem 0.03rem 0.06rem rgba(223, 230, 235, 0.16);
overflow-y: auto;
overflow-x: hidden;
}
.change-content {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
.content-wrap {
flex: 1;
height: 0;
overflow-y: scroll;
scrollbar-width: none; /* 滚动条宽度有三种:thin、auto、none ,主要用于处理火狐浏览器*/
}
/* 修改滚动条样式 */
.content-wrap::-webkit-scrollbar {
/*滚动条整体样式*/
width: 0 !important;
}
.content-wrap::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
width: 0 !important;
}