zoukankan      html  css  js  c++  java
  • 【原】Iframe with SimpleModal keeps breaking down in IE 9 IE 7

    SimpleModal 插件 

    http://www.ericmmartin.com/projects/simplemodal/

    以下代码可以避免在IE中使用simpleModal弹出iframe出错问题

     var license_no = ''


    $(document).ready(function () {
        $('#quote').click(function (e) {
            license_no = $(this).attr("licenseNo");
            e.preventDefault();
            function setSrc() {
                $('#frame_content').attr("src", "/default.asp?UrlReferrer=coxIpro&license_no=" + license_no);                    
            }
            $.modal('<iframe src="" id="frame_content" style="overflow:auto" scrolling="yes" frameborder="0" height="550px" width="805px">', {
                onShow: function (dialog) {
                    setSrc();
                },
                // Fix width issue in IE 7
                containerCss: {
                    height: 560,
                    padding: 0,
                     810
                },
                overlayClose: true,
                persist: false
            });
        });
    });
  • 相关阅读:
    tomcat启动startup.bat一闪而过
    shell简介
    hbase总结,值得一看
    hive的 安装和配置
    存储器管理
    银行家算法
    洛谷 2590 树的统计
    树链剖分 洛谷 3384
    2.3最大公约数与最小公倍数
    2.2 素数与合数
  • 原文地址:https://www.cnblogs.com/luckylei66/p/2588818.html
Copyright © 2011-2022 走看看