Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 使用jQuery ColorBox的iFrame IE8_C#_Jquery_Asp.net_Iframe_Colorbox - Fatal编程技术网

C# 使用jQuery ColorBox的iFrame IE8

C# 使用jQuery ColorBox的iFrame IE8,c#,jquery,asp.net,iframe,colorbox,C#,Jquery,Asp.net,Iframe,Colorbox,我正在使用JQuery ColorBox来处理内联内容,这在大多数浏览器中似乎都可以正常工作,但是当我在IE8中使用它时,它会在第一次加载时正常工作,然后内容的iFrame部分就不会显示了 我已经检查了源代码,并且iframe在html中正确呈现。我正在使用asp.NET3.5和c#作为服务器端 服务器端代码: <script> jQuery(document).ready(function () { jQuery.fn.colorbox({ wid

我正在使用JQuery ColorBox来处理内联内容,这在大多数浏览器中似乎都可以正常工作,但是当我在IE8中使用它时,它会在第一次加载时正常工作,然后内容的iFrame部分就不会显示了

我已经检查了源代码,并且iframe在html中正确呈现。我正在使用asp.NET3.5和c#作为服务器端

服务器端代码:

<script>

   jQuery(document).ready(function () {

            jQuery.fn.colorbox({ width: 376, inline: true, href: "#LightBox" });


        });
</script>

<div style='display:none'>
    <div id='LightBox' style='padding:10px; background:#fff;'>  
    <sc:Image runat="server" ID="imgBanner" Field="Banner" MaxWidth="346" />
    <sc:Text runat="server" ID="txtContent" Field="Content" />
    <iframe runat="server" id="iFrm" height="220px" scrolling="no" frameborder="0" />
   <img src="/images/loading.gif" alt="loading" id="preload-img" />
    </div>
    </div>

jQuery(文档).ready(函数(){
colorbox({width:376,inline:true,href:“#LightBox”});
});
客户端:

    <div style='display:none'>
    <div id='LightBox' style='padding:10px; background:#fff;'>  

    <img src="~/media/Images/Premier/newsletters/ignite/header_4.ashx?mw=346" alt="Ignite" width="346" height="132" />
    <p><strong>Free e-newsletter from Premier</strong> </p>
<p>Hot topics impacting your life today...</p>
<p>You are invited to receive <strong>Ignite</strong>, the UK's leading Christian <br />e-publication, 
dealing with the hottest issues of our day: from abortion, to going 'green', to the debate over homosexuality.</p> 
<p>To receive your free weekly subscription to <strong>Ignite</strong> fill in your details below.</p>
    <iframe id="content_10_iFrm" height="220px" scrolling="no" frameborder="0" src="http://email.premierchristianmedia.co.uk/premierradiolz//WebCapture.aspx?pID=334&amp;t=0"></iframe>
   <img src="/images/loading.gif" alt="loading" id="preload-img" />
    </div>
    </div>

卓越理财免费电子时事通讯

影响你今天生活的热门话题

欢迎您接收英国领先的基督教
电子出版物Ignite, 处理当今最热门的问题:从堕胎到“绿色化”,再到关于同性恋的辩论。

要获得每周免费订阅的Ignite请在下面填写您的详细信息


在找到修复程序之前,您可以通过将此元标记添加到页面的标题部分,使IE8模拟IE7

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">

在找到修复程序之前,您可以通过将此元标记添加到页面的标题部分,使IE8模拟IE7

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">


这似乎不起作用。它似乎已经加载了iframe,并且“认为”内容已加载,但仅显示为白色,如果我右键单击iframe并刷新它,它就会工作???这似乎不起作用。它似乎已经加载了iframe并“认为”加载了内容,但仅显示为白色,如果我右键单击iframe并刷新它,它会工作吗???