Stop scrollbar from pushing content left

后端 未结 3 1737
陌清茗
陌清茗 2021-02-19 01:30

I\'m designing a website and I have multiple pages that use the same template, some pages are longer than the browser window\'s height, other\'s aren\'t. The ones that are longe

3条回答
  •  清酒与你
    2021-02-19 01:58

    The only way to do this is to have the scrollbar always visible.

    html { overflow-y: scroll; }
    

提交回复
热议问题