我有一个jquery fancybox,里面有正常的href链接。当我点击那个链接时,fancybox关闭。点击链接后,如何防止fancybox关闭?防止jquery fancybox在链接上点击时关闭
这是的fancybox代码:
$(function(){
$(".booking_module").fancybox({
maxWidth : 550,
topRatio : 0,
fitToView : false,
width : '100%',
height : 'auto',
autoSize : false,
closeClick : false,
openEffect : 'none',
closeEffect : 'none',
centerOnScroll: true,
autoResize: true,
autoCenter: true,
margin : [topmargin, 0, 0, 0],
helpers : {
overlay : {closeClick: false}
}
});
});
感谢您的回答。我发现问题出在别的地方。见下文。至于为什么对我来说没有意义,但是只去掉这个班级就完成了这项工作。 – BastiaanWW 2015-02-24 20:32:14
复制/粘贴从另一个答案似乎确定时引用源http://stackoverflow.com/a/8404587/1055987:P – JFK 2015-02-24 23:01:21