[英]How can I prevent fancybox from closing? Want to make the user click the Close button instead of anywhere on the browser
您好StackOverflowers!
我正在整理的网站存在一些问题,联系表单位于fancybox中,每当您单击关闭表单时,这显然是我所不希望的,因为我希望表单可以在fancybox中使用?
链接到我的网站是: http : //raychampionfitness.com
我使用了在stackoverflow上发现的其他示例,这些示例声称它们可以工作,但是它们现在可以工作了吗?
任何帮助表示赞赏!
这需要设置为false而不是true:
/* Using custom settings */
$("a#inline").fancybox({
'hideOnContentClick': true
});
另外,您在该页面上两次加载了jQuery-自动通过wordpress加载一次,看起来您可能已在主题中添加了另一个。
如果有人使用新的fancybox v2,则必须设置:
modal: true
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.