你如何给iframe 100%的身高 [英] How do you give iframe 100% height
本文介绍了你如何给iframe 100%的身高的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图
< iframe height =100%...>
但它仍然不会调整它的大小。当我尝试在pixles中的高度它工作。
编辑:100%似乎工作在IE浏览器,但不是火狐
< iframe style =h2_lin>解决方案
position:absolute; height:100%; border:none>< / iframe>
请注意,这将默认放置在页面的左上角,但我猜测这就是你想要达到的目标。您可以在左边
,右边
,顶部
和底部
CSS属性。
I'm trying
<iframe height="100%" ...>
but it still doesn't resize it. When i try the height in pixles it works.
edit: 100% seems to be working on IE but not firefox
解决方案
You can do it with CSS:
<iframe style="position: absolute; height: 100%; border: none"></iframe>
Be aware that this will by default place it in the upper-left corner of the page, but I guess that is what you want to achieve. You can position with the left
,right
, top
and bottom
CSS properties.
这篇关于你如何给iframe 100%的身高的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文