Project scenario:
Hide beyond the height of the box so that it can be scrolled to view
Problem Description
The scroll bar appears, which affects the appearance. The project requires that the scroll bar not be displayed but the scroll effect is still there
solution:
who rolls, removes who
.boxOrder {
width: 1420px;
height: 800px;
margin: 0 auto;
overflow-y: scroll;
position: relative;
}
.boxOrder::-webkit-scrollbar {
display: none;
}
Show results
Does not display the scroll bar but still has a scrolling effect beyond the set height