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
            });
        });
    });
  • 相关阅读:
    jemeter代理设置
    iphone代码签名相关
    iphone 程序部署和发布链接
    iphone 代码片段2
    iphone给tabbar添加数字
    我的开源目录(持续更新中):
    WPF笔记(1.2 Navigation导航)——Hello,WPF!
    WPF笔记(0)
    棋牌游戏大厅简介
    WPF笔记(1.3 属性元素)——Hello,WPF!
  • 原文地址:https://www.cnblogs.com/luckylei66/p/2588818.html
Copyright © 2011-2022 走看看