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

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

加這個
複製程式碼 程式碼如下:
 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中通過

您可能感興趣的文章:

fancybox1.3.1 基於Jquery的外掛在IE中圖片顯示問題用JSON做資料傳輸格式中的一些問題總結使用jQuery fancybox外掛打造一個實用的資料傳輸模態彈出窗體 jQuery Fancybox 無重新整理放大圖片(LightBox燈箱外掛)