【发布时间】: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