Javascript 如何防止车身上的彩框点击事件?

Javascript 如何防止车身上的彩框点击事件?,javascript,jquery,colorbox,Javascript,Jquery,Colorbox,我使用的是色盒,它工作得很好。我想避免它被body click事件关闭。当我点击关闭按钮时,它应该关闭。这个的语法是什么。 我正在使用这个代码 $(".iframe").colorbox({iframe:true, innerWidth: 570, innerHeight: 300, scrolling: true}); 使用以下命令: $(".iframe").colorbox({iframe:true, innerWidth: 570, innerHeight: 300, scrolli

我使用的是色盒,它工作得很好。我想避免它被body click事件关闭。当我点击关闭按钮时,它应该关闭。这个的语法是什么。 我正在使用这个代码

$(".iframe").colorbox({iframe:true, innerWidth: 570, innerHeight: 300, scrolling: true});
使用以下命令:

 $(".iframe").colorbox({iframe:true, innerWidth: 570, innerHeight: 300, scrolling: true, overlayClose: false});
使用以下命令:

 $(".iframe").colorbox({iframe:true, innerWidth: 570, innerHeight: 300, scrolling: true, overlayClose: false});
使用以下命令:

 $(".iframe").colorbox({iframe:true, innerWidth: 570, innerHeight: 300, scrolling: true, overlayClose: false});
使用以下命令:

 $(".iframe").colorbox({iframe:true, innerWidth: 570, innerHeight: 300, scrolling: true, overlayClose: false});

您可以使用
overclose:false
attrubute来禁用在单击灰色背景时关闭颜色框

overcyclose
的默认值为
true

$(".iframe").colorbox({iframe:true, 
                       innerWidth: 570, 
                       innerHeight: 300, 
                       scrolling: true, 
                       overlayClose: false});

更多信息-

您可以使用
overcloses:false
attrubute来禁用在单击灰色背景时关闭颜色框

overcyclose
的默认值为
true

$(".iframe").colorbox({iframe:true, 
                       innerWidth: 570, 
                       innerHeight: 300, 
                       scrolling: true, 
                       overlayClose: false});

更多信息-

您可以使用
overcloses:false
attrubute来禁用在单击灰色背景时关闭颜色框

overcyclose
的默认值为
true

$(".iframe").colorbox({iframe:true, 
                       innerWidth: 570, 
                       innerHeight: 300, 
                       scrolling: true, 
                       overlayClose: false});

更多信息-

您可以使用
overcloses:false
attrubute来禁用在单击灰色背景时关闭颜色框

overcyclose
的默认值为
true

$(".iframe").colorbox({iframe:true, 
                       innerWidth: 570, 
                       innerHeight: 300, 
                       scrolling: true, 
                       overlayClose: false});

更多信息-

e.preventDefault()
RTFM?设置:
overcyclose
;默认值:
true
;如果为false,则通过单击背景覆盖来禁用关闭色框。
e.preventDefault()
RTFM?设置:
overcyclose
;默认值:
true
;如果为false,则通过单击背景覆盖来禁用关闭色框。
e.preventDefault()
RTFM?设置:
overcyclose
;默认值:
true
;如果为false,则通过单击背景覆盖来禁用关闭色框。
e.preventDefault()
RTFM?设置:
overcyclose
;默认值:
true
;如果为false,则通过单击背景覆盖来禁用关闭颜色框。这是与另一个答案相同的代码,后面是另一个答案,不包含描述。这是与另一个答案相同的代码,后面是另一个答案,不包含描述。这是与另一个答案相同的代码,作为另一个答案出现在后面,不包含描述。这与另一个答案的代码相同,作为另一个答案出现在后面,不包含描述。