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
            });
        });
    });
  • 相关阅读:
    hdu3874
    spoj D-query
    hdu4348
    hdu4417
    hdu2665
    [LUOGU] P1057 传球游戏
    [CODEVS] 2193 数字三角形WW
    [CODEVS] 2189 数字三角形W
    [模板] 线段树
    [模板] 树状数组
  • 原文地址:https://www.cnblogs.com/luckylei66/p/2588818.html
Copyright © 2011-2022 走看看