代码:
.course-list .list-wrap{ display: block; width: 678rpx; height: 353rpx; margin: 0 auto; margin-top: 91rpx; overflow: hidden; overflow-y: scroll; } ::-webkit-scrollbar { width: 0; height: 0; color: transparent; }
主要是 -webkit-scrollbar该css样式起到了作用。