1. <tfoot id='wwtI6'></tfoot>
        <bdo id='wwtI6'></bdo><ul id='wwtI6'></ul>
    2. <legend id='wwtI6'><style id='wwtI6'><dir id='wwtI6'><q id='wwtI6'></q></dir></style></legend>

      <i id='wwtI6'><tr id='wwtI6'><dt id='wwtI6'><q id='wwtI6'><span id='wwtI6'><b id='wwtI6'><form id='wwtI6'><ins id='wwtI6'></ins><ul id='wwtI6'></ul><sub id='wwtI6'></sub></form><legend id='wwtI6'></legend><bdo id='wwtI6'><pre id='wwtI6'><center id='wwtI6'></center></pre></bdo></b><th id='wwtI6'></th></span></q></dt></tr></i><div id='wwtI6'><tfoot id='wwtI6'></tfoot><dl id='wwtI6'><fieldset id='wwtI6'></fieldset></dl></div>

        <small id='wwtI6'></small><noframes id='wwtI6'>

      1. jquery fancybox - 防止在fancybox之外点击关闭

        时间:2023-06-14
        <i id='MTStM'><tr id='MTStM'><dt id='MTStM'><q id='MTStM'><span id='MTStM'><b id='MTStM'><form id='MTStM'><ins id='MTStM'></ins><ul id='MTStM'></ul><sub id='MTStM'></sub></form><legend id='MTStM'></legend><bdo id='MTStM'><pre id='MTStM'><center id='MTStM'></center></pre></bdo></b><th id='MTStM'></th></span></q></dt></tr></i><div id='MTStM'><tfoot id='MTStM'></tfoot><dl id='MTStM'><fieldset id='MTStM'></fieldset></dl></div>
          <tbody id='MTStM'></tbody>

              <bdo id='MTStM'></bdo><ul id='MTStM'></ul>

                  <tfoot id='MTStM'></tfoot>
                  <legend id='MTStM'><style id='MTStM'><dir id='MTStM'><q id='MTStM'></q></dir></style></legend>

                  <small id='MTStM'></small><noframes id='MTStM'>

                • 本文介绍了jquery fancybox - 防止在fancybox之外点击关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在为我的模态窗口使用 Fancybox 插件.似乎无论我使用什么选项,当用户在fancybox 模态窗口(灰色区域)之外单击时,我都无法阻止fancybox 模态窗口关闭.

                  I'm using the Fancybox plugin for my modal windows. It seems like no matter what options I use I can't prevent the fancybox modal window from closing when the user clicks outside of the fancybox modal window (grayed out area).

                  有没有办法强制用户点击我触发关闭事件的 X 或按钮?这似乎应该很简单,所以我希望我只是看错了示例.

                  Is there a way to force the user to click the X or a button that I trigger the close event? This seems like it should be simple so I'm hoping I'm just reading the examples wrong.

                  我试过 hideOnContentClick: false 但这似乎对我不起作用.有什么想法吗?

                  I've tried hideOnContentClick: false but that doesn't seem to be working for me. Any ideas?

                  推荐答案

                  没有办法.您将不得不更改源代码.

                  There is no option for that. You will have to change the source code.

                  在 jquery.fancybox-1.2.1.js 中,你需要在 _finish 方法中注释掉(或删除)第 341 行:

                  In jquery.fancybox-1.2.1.js you need to comment out (or delete) line 341 in the _finish method:

                  //$("#fancy_overlay, #fancy_close").bind("click", $.fn.fancybox.close);
                  

                  这篇关于jquery fancybox - 防止在fancybox之外点击关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:使用jQuery UI Draggable,使用滚动条时如何避免拖动? 下一篇:appendChild 在 IE 中无法正常工作

                  相关文章

                    <legend id='nI1Rl'><style id='nI1Rl'><dir id='nI1Rl'><q id='nI1Rl'></q></dir></style></legend>
                  1. <tfoot id='nI1Rl'></tfoot>

                    <small id='nI1Rl'></small><noframes id='nI1Rl'>

                    <i id='nI1Rl'><tr id='nI1Rl'><dt id='nI1Rl'><q id='nI1Rl'><span id='nI1Rl'><b id='nI1Rl'><form id='nI1Rl'><ins id='nI1Rl'></ins><ul id='nI1Rl'></ul><sub id='nI1Rl'></sub></form><legend id='nI1Rl'></legend><bdo id='nI1Rl'><pre id='nI1Rl'><center id='nI1Rl'></center></pre></bdo></b><th id='nI1Rl'></th></span></q></dt></tr></i><div id='nI1Rl'><tfoot id='nI1Rl'></tfoot><dl id='nI1Rl'><fieldset id='nI1Rl'></fieldset></dl></div>
                      <bdo id='nI1Rl'></bdo><ul id='nI1Rl'></ul>