css代码(一定要给元素设置宽高):
.conten-box{
overflow: hidden;
overflow-y: scroll;
white-space: nowrap;
height:535px;
width:100%;
}
.conten-box::-webkit-scrollbar {
width: 0;
}
html代码:
<div class="conten-box">
....内容....
</div>
css代码(一定要给元素设置宽高):
.conten-box{
overflow: hidden;
overflow-y: scroll;
white-space: nowrap;
height:535px;
width:100%;
}
.conten-box::-webkit-scrollbar {
width: 0;
}
html代码:
<div class="conten-box">
....内容....
</div>