繁体   English   中英

Google Chrome浏览器中的iframe高度

[英]Iframe Height in the Google Chrome

我的.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";          

我的问题只是Google Chrome浏览器中的iframe高度,因为Google Chrome浏览器中的页面在页脚后显示了很大的空白。

在iframe中的widthheight属性中删除px

例如

<iframe runat="server" id="ifTest" name="ifTest" frameborder="0" height="790"
width="960" class="iframeTest" style="position:inherit;"></iframe>

与/或

添加额外的样式:

iframe{ width:960px; height:790px;}

*让我知道这是否有帮助,否则我可以进行更多调查...是否可以查看一些链接? 还是JSfiddle链接?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM