如果我没有指定任何尺寸,则 iframe 会显得很小。如果我按如下方式指定尺寸,则它无法针对不同的屏幕分辨率正确缩放
<iframe name="report"style="height:1200px;width:800px;">
有没有办法让iframe自动拉伸(stretch)到整个屏幕?
最佳答案
使用百分比
<iframe name="report" height="100%" width="100%"></iframe>
关于html - 如何在不指定尺寸的情况下使 iframe 适合整个屏幕?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7439503/