如何在不指定尺寸的情况下使iframe适合整个屏幕? [英] How do I make an iframe fit the entire screen without specifying dimensions?
本文介绍了如何在不指定尺寸的情况下使iframe适合整个屏幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我没有指定任何尺寸,那么iframe显得很小。如果我按照以下方式指定尺寸,那么它对于不同的屏幕分辨率无法正确缩放
If I don't specify any dimensions, the iframe appears tiny. If I do specify dimensions as follows then it does not properly scale for different screen resolutions
<iframe name="report"style="height:1200px;width:800px;">
有没有办法让iframe自动扩展到整个屏幕?
Is there a way to automatically allow the iframe to stretch to the entire screen?
推荐答案
使用%
<iframe name="report" height="100%" width="100%"></iframe>
这篇关于如何在不指定尺寸的情况下使iframe适合整个屏幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文