【发布时间】:2011-10-13 09:01:04
【问题描述】:
我的 .aspx 页面中有一个 iFrame,它重定向到我的解决方案之外的外部页面。
我遇到的问题是在 Google Chrome 中,iFrame 的高度似乎改变了 .aspx 页面的高度。这仅发生在 Google Chrome 上。
<iframe runat="server" id="ifTest" name="ifTest" frameborder="0" height="790px"
width="960px" class="iframeTest" style="position:inherit;"></iframe>
CSS 类 iframeTest 在我的解决方案之外,我的意思是,我的 iframe 显示了一个在我的解决方案之外的页面。
例如,这是代码隐藏中的 iframe 示例,用于显示我的解决方案之外的页面。
this.ifTest.Attributes["src"] = "the_page_link_that_i_want";
我的问题只是谷歌浏览器中的 iframe 高度,因为谷歌浏览器中的页面在页脚后显示了一个很大的空白。
【问题讨论】:
标签: javascript jquery css google-chrome iframe