Twitter Bootstrap modal opening/closing causes fixed header to jump

后端 未结 14 2390
旧时难觅i
旧时难觅i 2021-01-08 01:39

I am almost done with a simple 2-page website for my registered domain names. Unfortunately I have one small issue I can\'t seem to fix: a jumpy header when a Twitter Bootst

14条回答
  •  自闭症患者
    2021-01-08 01:50

    This one only works if you know your page content is longer than the viewport (so any long scrolling page). You can just add the following to your CSS -

    html {
      overflow-y: scroll;
    }
    
    .modal-open {
      padding-right: 0!important;
    }
    

提交回复
热议问题