简体   繁体   English

iFrame在IE11中显示外部div

[英]iFrame displaying outside div in IE11

I have a problem with a site displaying correctly in IE11. 我在IE11中正确显示网站时遇到问题。 Everything is fine in Firefox and Chrome. 在Firefox和Chrome中一切正常。 It is built using zen cart and the index page is made up of a series of html banners. 它是使用zen cart构建的,索引页面由一系列html横幅组成。 One of these banners contains the code to display a twitter feed. 这些横幅之一包含显示Twitter提要的代码。 In IE11 this is being output outside of the div it is supposed to be in. 在IE11中,这是在应该位于的div之外输出的。

I'm looking for suggestions on how to fix this issue. 我正在寻找有关如何解决此问题的建议。 I tried adding an IE specific line in the stylesheet to move it up but it goes so far, until the top of the feed is roughly aligned to the bottom of the coloured heading next to it, and then one pixel more and it jumps up dramatically. 我尝试在样式表中添加IE特定行以将其向上移动,但是到目前为止,提要的顶部一直与旁边的彩色标题的底部大致对齐,然后再增加一个像素,然后它急剧跳升。

I resolved this by removing the height and margin-top that i had set on the original div and then added new positioning to the stylesheet using the class in the embedded code provided by twitter. 我通过删除在原始div上设置的高度和边距顶端来解决此问题,然后使用twitter提供的嵌入式代码中的类将新位置添加到样式表中。 The additional css i added is just loaded up along with the embedded css. 我添加的其他CSS随嵌入式CSS一起加载。

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

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