• 【原】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
            });
        });
    });
  • 相关阅读:
    你不知道的CSS(二) (转载)
    sass 使用
    前端常用工具介绍
    web端调用打印
    sublime 插件:Emmet
    Sublime text 安装Package Control
    Sublime Text 常用的16 个 Sublime Text 快捷键
    js中如何快速获取数组中的最大值最小值
    web app变革之rem
    前端工程需要会的技能
  • 原文地址:https://www.cnblogs.com/luckylei66/p/2588818.html
Copyright © 2020-2023  润新知