[英]How to prevent colorbox on body click event?
I am using colorbox which is working fine. 我正在使用可以正常工作的colorbox。 I want to avoid it from getting closed by body click event.
我想避免它被身体点击事件关闭。 It should close when I click on close button.
当我单击关闭按钮时,它应该关闭。 What would be the syntax for this.
这个的语法是什么。 I am using this code.
我正在使用此代码。
$(".iframe").colorbox({iframe:true, innerWidth: 570, innerHeight: 300, scrolling: true});
You can use overlayClose: false
attrubute to disable closing of colorbox on click of gray background. 您可以使用
overlayClose: false
属性来禁用在单击灰色背景时关闭颜色框。
Default value of overlayClose
is true
overlayClose
默认值为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});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.