overflow實現(xiàn)隱藏滾動條同時又可以滾動
[](javascript:void(0); "復(fù)制代碼")
<pre style="margin: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word; font-family: "Courier New" !important; font-size: 12px !important;">.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;
}</pre>
](javascript:void(0); "復(fù)制代碼")
設(shè)置橫向滾動時碟婆,可以設(shè)置overflow-x:auto;