Twitter Bootstrap Modal scrolling the page up on show

前端 未结 6 997
日久生厌
日久生厌 2020-12-09 12:12

Clicking on a link which triggers a Twitter Bootstrap Modal to pop up is causing the browser to scroll up the page. This behavior is only occurring in Chrome.

Here

6条回答
  •  悲&欢浪女
    2020-12-09 12:45

    I had the same problem because of these lines of CSS which were thought to permantly display scrollbars in the browser. Removing the two lines solved the problem:

    html,
    body {
        min-height: 100%;
        height: 101%;
    }
    

提交回复
热议问题