CSS set overflow to hide scroll bar and scroll at the same time

Time:2019-11-13

CSS sets overflow to hide scrollbars and scroll at the same time. The specific code is as follows:


.scroll-list ul{
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0.1rem;
    margin-bottom: -.2rem;
    overflow: -moz-scrollbars-none;
    overflow: -moz-scrollbars-none;
}
.scroll-list ul::-webkit-scrollbar{
    display: none;
}

summary

The above-mentioned is the CSS settings that Xiaobian introduced to you. Overflow can hide the scroll bar and scroll at the same time. I hope it can help you. If you have any questions, please leave a message to me, and Xiaobian will reply to you in time. Thank you very much for your support of the developepaer website!
If you think this article is helpful to you, welcome to reprint, please indicate the source, thank you!