.cropsContent {//父盒子必须100%高度
width: 100%;
height: 100%;
text-align: center;
}
.content {
height: calc(100% - 185px);
overflow-y: auto;
padding: 5px 0;
}
.content::-webkit-scrollbar {display:none}//隐藏滚动条
.content::-webkit-scrollbar { //滚动条样式
width: 5px;
background: rgb(177, 188, 191);
}
.content::-webkit-scrollbar-thumb { //滚动的滑块样式
width: 5px;
background: rgb(227, 216, 115);
}
一定要保证父盒子的高度是百分之百