You could simply change the CSS-definition via jQuery or something when opening the modal, then revert to "scroll" when closing it. Something like this...
$('[data-fancybox]').fancybox({
afterShow: function( instance, slide ) {
$('html').css('overflow-y','inherit');
},
afterClose: function( instance, slide ) {
$('html').css('overflow-y','scroll');
}
});
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…