Browser Scrollbar shift

后端 未结 6 1918
南方客
南方客 2021-01-05 01:59

When you go to page on my website where there is extra content, the scrollbar appears on the right, but it has a notiable shift to the left for my content. You notice this b

6条回答
  •  失恋的感觉
    2021-01-05 02:35

    I've tested this on IE6, IE7, IE8, Firefox 3, and Chrome, and the simple way to have a vertical scroll bar always visible is simply:

    html { overflow-y: scroll; } 
    

提交回复
热议问题