zoukankan      html  css  js  c++  java
  • fancybox modal 的完美解决

    有的时候我们希望保留右上的X,同时使用fancybox 的modal模式,怎么办呢

    加这个 

     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中通过

     

  • 相关阅读:
    「暑期集训day23」黑幕
    暑期集训day23考试整理
    「暑期集训day22」黑色
    暑期集训day22考试整理
    「暑期集训day21」往复
    「暑期集训day20」仰望
    日常报错
    Spring-Boot环境的快速搭建
    jsp和thymeleaf模板
    Boot的简单配置
  • 原文地址:https://www.cnblogs.com/conan77/p/2746377.html
Copyright © 2011-2022 走看看