如果我不指定任何尺寸,iframe 就会显得非常小。如果我按照以下方式指定尺寸,则它无法适应不同屏幕分辨率的缩放。
<iframe name="report"style="height:1200px;width:800px;">
有没有一种方法可以自动让iframe占据整个屏幕?
使用百分号 %
<iframe name="report" height="100%" width="100%"></iframe>
iframe
没有相对定位的小祖先元素。<iframe name="report"style="position: absolute; top: 0; right: 0; bottom: 0: left: 0;">
<div style="overflow: hidden;position: relative; height:200px;" >
<iframe class="" rel="nofollow" style="height: 800px; width:1400px; transform: scale(0.294167) !important; transform-origin: 0px 0px;" frameborder="0" scrolling="no"
src="your iframe link"></iframe></div>