首页  >  文章  >  web前端  >  fancybox modal的完美解决(右上的X)_jquery

fancybox modal的完美解决(右上的X)_jquery

WBOY
WBOY原创
2016-05-16 17:48:361255浏览

加这个

复制代码 代码如下:

 helpers: {

                            overlay: {
                                closeClick: false
                                                    }


就是加这个,如
复制代码 代码如下:

  jQuery.fancybox({

                             helpers: {
                            overlay: {
                                closeClick: false
                            }
                        },
                            'padding': 0,
                            'margin': 0,
                            'width': 400,
                            'height': 400,
                            'autoScale': false,
                            'scrolling': 'no',
                            'overlayShow': true,
                            'type': 'iframe',
                            'href': $(this).attr('href'),
                            'afterClose': function () {
                                //refresh grid
                                reload("lstAppServer", "/Actions/GetAppServers.ashx?filter=" + escape($("#").val()));
                            }
                        });


本方法在fancybox 2.1.3中通过
fancybox modal的完美解决(右上的X)_jquery
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn