How to hide scrollbar in Firefox?

前端 未结 14 778
攒了一身酷
攒了一身酷 2020-11-29 04:33

I just found out how to hide the scrollbar in Google Chrome, I did it with this code:

::-webkit-scrollbar { display: none; }

The only p

14条回答
  •  我在风中等你
    2020-11-29 04:41

    I used this and it worked. https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-width

    html {
    scrollbar-width: none;
    }
    

    Note: User Agents must apply any scrollbar-width value set on the root element to the viewport.

提交回复
热议问题