【发布时间】:2017-10-30 10:02:09
【问题描述】:
我正在使用Magnific Popup jquery 插件在模态框内显示灯箱(图库)。我的代码如下:
$.magnificPopup.open({
items:items,
type:'image',
modal:true,
closeOnContentClick:true,
closeOnBgClick:true,
showCloseBtn:true,
enableEscapeKey:true,
gallery: {
enabled: true,
preload: [0,3],
},
removalDelay: 500,
mainClass: 'mfp-fade',
});
我需要将modal 设置为true 否则,灯箱库往往会意外关闭。这是许多灯箱中发生的已知问题。
这个modal 到true 设置的缺点是关闭按钮不起作用。
有没有遇到类似情况的人找到解决方案?
【问题讨论】:
标签: javascript jquery magnific-popup