Content jumps horizontally whenever browser adds a scrollbar

后端 未结 6 1677
星月不相逢
星月不相逢 2021-01-04 03:28

I\'m using a fixed width body and auto margins to center my content in the middle of the page. When the content exceeds the page\'s height and the browser adds a scrollbar,

6条回答
  •  [愿得一人]
    2021-01-04 03:58

    The process is :

    html {
       overflow-y: scroll !important;
    }
    

    This will show the scrollbar even there no need any scroll bar.

提交回复
热议问题