how to prevent scrolling of page behind fancybox-2

前端 未结 9 1937
北恋
北恋 2020-12-16 14:44

We are using fancybox2 for displaying images. Everything works well, but when the larger image is displayed in the fancybox, the page behind scrolls to the top. After closin

9条回答
  •  粉色の甜心
    2020-12-16 15:05

    In jquery.fancybox.css -> .fancybox-lock
    change:
    overflow: hidden !important;
    to:
    overflow: visible !important;
    works for me :)

提交回复
热议问题