jQuery simplemodal disable scrolling

后端 未结 6 2139
被撕碎了的回忆
被撕碎了的回忆 2021-02-04 09:01

I have more than 2000 pixels scrolling content on a page.

If the user clicks a div a scrolling content pops up in a simplemodal window. Now my client wants

6条回答
  •  忘了有多久
    2021-02-04 09:40

    Use

    overflow:hidden
    

    Apply it to the page when modal dialog is opened and remove it when the dialog is destroyed. This will hide your scrollbar.

提交回复
热议问题