Home > database >  Display scrollbar after using webkit-scrollbar{ display: none }
Display scrollbar after using webkit-scrollbar{ display: none }

Time:01-16

In my project, we have a common css file and in which, we use webkit-scrollbar{ display: none } to hide scroll bar in chrome, but in some page, we need to display scroll bar in chrome. I have tried some way I have found on internet. Ex: display: block, initial ,... or all : unset, but it doesn't work. Anyone have any idea for this problem ? Thanks

CodePudding user response:

Try overflow-y: scroll to show the scrollbar, and overflow-y: hidden to hide the scrollbar. Reference: link

CodePudding user response:

Try using overflow: scroll or overflow: auto on those pages where you want the scroll to appear.

  •  Tags:  
  • Related