How to hide scrollbar in Firefox?

前端 未结 14 754
攒了一身酷
攒了一身酷 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:40

    Just in case, if someone is looking for a hack to somehow make the scrollbar invisible in firefox(79.0).

    Here's a solution that successfully works for Chrome, IE, Safari, and makes the scrollbar transparent in Firefox. None of the above worked for firefox(79.0) in truly hiding the scrollbar.

    Please if anyone finds a way to do it without changing the color, it will be very helpful. Pls comment below.

    .scrollhost::-webkit-scrollbar {
      display: none;
    }
    
    .scrollhost ::-moz-scrollbar {
      display: none;
     
    }
     
    .scrollhost {
      overflow: auto;
      -ms-overflow-style: none;
      scrollbar-color: transparent transparent; /*just hides the scrollbar for firefox */
    }
    

提交回复
热议问题