Zurb Foundation揭示模态 - 防止背景点击关闭 [英] Zurb Foundation Reveal Modal - preventing close on background click
本文介绍了Zurb Foundation揭示模态 - 防止背景点击关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我打开显示模式时,我想阻止它在后台点击时关闭(这是默认行为)。
When I am opening my Reveal Modal, I would like to prevent it from closing on background click (which is a default behavior).
我使用的是Zurb Foundation 5.0.2 。
I am using Zurb Foundation 5.0.2.
任何帮助将不胜感激。
推荐答案
如果您设置 closeOnBackgroundClick
选项 false
然后当你在后台点击时,你的模态
不会关闭。
If you set the closeOnBackgroundClick
option to false
then your modal
won't close when you click in the background.
<div class="reveal-modal" data-options="closeOnBackgroundClick:false">
这篇关于Zurb Foundation揭示模态 - 防止背景点击关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文