简体   繁体   English

Firefox中的iframe调整大小问题

[英]iframe resize issue in firefox

i know this is so basic ,its so basic that it hurts me to ask this question but the issue is starting to make my hair too fall out lol. 我知道这太基础了,太基础了,问这个问题让我很伤心,但是这个问题开始让我的头发也掉下来了。

i'm making a liquid website so everything resizes,so far so good...my page has a couple of iframes ,they will resize just great in ie using % for height and width but when it comes to firefox only the width will resize and not the height ,the frame ends up pushing over my tables and making the whole thing look wrong 我正在制作一个流畅的网站,所以一切都可以调整大小,到目前为止一切都很好...我的页面上有几个iframe,它们的调整大小非常好,例如,使用%表示高度和宽度,但是在Firefox中,只有宽度可以调整大小而不是高度,框架最终推到我的桌子上,使整个外观看起来不对

does anyone have a fix/solution to this please. 是否有人对此有修复/解决方案?

thanks to everyone that tried to help ,it was a bit vauge i managed to solve it in the end simply by 感谢所有尝试提供帮助的人,我最终还是设法解决了这个问题

putting the iframe i wanted inside a layer/div set the layer to absolute and size it in % and then add the iframe inside the layer worked a treat for all browsers. 将我想要的iframe放置在layer / div中,将其设置为绝对值并将其设置为%,然后将iframe添加到该层中,这对所有浏览器都有效。

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

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