×

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

作者:Terry2017.02.09来源:Web前端之家浏览:10452评论:0
关键词:JQueryJS

加这个

复制代码 代码如下:

 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($("#<%=txtFilter.ClientID %>").val()));
                            }
                        });


本方法在fancybox 2.1.3中通过

您的支持是我们创作的动力!
温馨提示:本文作者系Terry ,经Web前端之家编辑修改或补充,转载请注明出处和本文链接:
https://www.jiangweishan.com/article/svg1486569600862.html

网友评论文明上网理性发言已有0人参与

发表评论: