如何让Fancybox的关闭按钮不可见?
How to make the close button of Fancybox invisible?
我不希望用户能够通过点击右上角的默认关闭按钮来关闭 fancybox :
$("a#ExporterSujetReponse", context).fancybox({
'onStart': function () {
loadDeverouillerSujetAvecReponse (this) ;
},
'overlayOpacity':0.4,
'overlayColor':'#000000',
'titleShow':false,
'hideOnOverlayClick':false,
'centerOnScroll':true,
'onComplete' : function(){
$.fancybox.resize();
$('#fancybox-content').removeAttr('style').css({ 'height' : $(window).height()-100, 'margin' : '0 auto', 'width' : $(window).width()-150 });
}
});
那么如何让默认的关闭按钮不可见呢?
使用'showCloseButton':false
$("a#ExporterSujetReponse", context).fancybox({
...
'showCloseButton':false, // add this line to hide close button
....
});
我不希望用户能够通过点击右上角的默认关闭按钮来关闭 fancybox :
$("a#ExporterSujetReponse", context).fancybox({
'onStart': function () {
loadDeverouillerSujetAvecReponse (this) ;
},
'overlayOpacity':0.4,
'overlayColor':'#000000',
'titleShow':false,
'hideOnOverlayClick':false,
'centerOnScroll':true,
'onComplete' : function(){
$.fancybox.resize();
$('#fancybox-content').removeAttr('style').css({ 'height' : $(window).height()-100, 'margin' : '0 auto', 'width' : $(window).width()-150 });
}
});
那么如何让默认的关闭按钮不可见呢?
使用'showCloseButton':false
$("a#ExporterSujetReponse", context).fancybox({
...
'showCloseButton':false, // add this line to hide close button
....
});