Hide scroll bar, but while still being able to scroll

前端 未结 30 3413
悲哀的现实
悲哀的现实 2020-11-21 04:22

I want to be able to scroll through the whole page, but without the scrollbar being shown.

In Google Chrome it\'s:

::-webkit-scrollbar {
    display:         


        
30条回答
  •  无人及你
    2020-11-21 05:02

    As of December 11th 2018 (Firefox 64 and above), the answer to this question is very simple indeed as Firefox 64+ now implements the CSS Scrollbar Styling spec.

    Just use the following CSS:

    scrollbar-width: none;
    

    Firefox 64 release note link here.

提交回复
热议问题