【问题标题】:pdf not loading properly in Iframe (Flex) in internet explorerpdf 无法在 Internet Explorer 的 Iframe (Flex) 中正确加载
【发布时间】:2013-11-19 23:06:54
【问题描述】:

我正在使用 iframe 组件在 flex 中加载 pdf。为此,我在 index.template.html 中定义了一个 div 标签,如下所示。

<iframe name="_history" src="history.htm" frameborder="0" scrolling="no" width="22" 
height="0"  ></iframe>
<!--This div is for the PDFiFrame-->
<div id="pdfFrame" style="position:absolute;left:0px; top: 0px; bottom :0px;right:   
0px;background-color:transparent;border:0px;visibility:hidden;"></div>

现在,我的问题是它在 mozilla 和 chrome 中运行良好,并且 pdf 在指定区域(即 Iframe)中正确加载。但在 IE 中,它无法在 Iframe 中正确加载。它走出了它的界限。以下是mxml中的代码。

<mx:Canvas id = "myFrame" width="100%" height="100%" >  

<comps:IFrame id="iFr" visible="{availableFlag}" source="{srcUrl}" width="100%"  
height="100%" x="0" y="0" />
</mx:Canvas>  

我认为这是因为我在 div 标签中使用了绝对样式。如果我用相对替换它,PDF 甚至不会加载。

谁能告诉我是什么问题?

【问题讨论】:

    标签: internet-explorer apache-flex html iframe


    【解决方案1】:

    您在 IE 中发现任何错误吗?一些 javascript 错误

    这是flex-iframe 网站

    【讨论】:

      【解决方案2】:

      我至少在不同的时间用这个 IFrame 组件花了一个月的时间在一个或另一个浏览器上都不能正常工作!确保您是否要使用它来检查和重新检查,并且很可能在浏览器的下一次新更新中它不再工作 - 听到您的 FireFox 正在处理它非常惊讶 - 这一直是个大问题,而不是真正的IE!关于aktell

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2017-11-01
        • 2013-07-12
        • 1970-01-01
        • 1970-01-01
        • 2014-03-06
        • 1970-01-01
        • 1970-01-01
        • 2015-12-31
        相关资源
        最近更新 更多