带有iFrame的Fancybox3-防止重叠点击关闭 [英] Fancybox3 with iFrame - prevent close on overlay click
本文介绍了带有iFrame的Fancybox3-防止重叠点击关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Fancybox3在弹出窗口中打开iframe,但是我需要拒绝单击叠加层,因为在iframe中是表格,用户必须填写.
I am using Fancybox3 to open iframe in popup, but I need deny close on click on overlay, because in iframe is form, which user must fill out.
I tried edit outsideClick parameter 'close' to 'false' in fancybox.js and this guide too, but it's still closing on click on overlay.
有人可以帮助我吗?谢谢.
Can somebody help me? Thanks.
推荐答案
只需使用clickSlide
选项. v3用作滑块,并且高度可自定义(例如,您可以调整滑动区域的大小和/或位置),因此,单击滑动和覆盖元素有单独的选项.
Simply use clickSlide
option. v3 works as a slider and is highly customizable (for example, you can resize and/or reposition sliding area), therefore there is a seperate options for clicking the slide and overlay element.
这篇关于带有iFrame的Fancybox3-防止重叠点击关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文