这里的HTML:填充底部,最大高度
<div class="container">
<div class="wrapper">
<iframe src="...."></iframe>
</div>
</div>
的包装div有CSS: 位置:亲属; 宽度:100%; 身高:100%; 身高:0; 填充底:56.25%; 溢出:隐藏;
iframe的有CSS:
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
border: 0;
容器具有CSS:
position: relative;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
margin: 0 auto;
top: 50%;
transform: translateY(-50%);
max-width: 1280px;
max-height: 720px;
我试图保护宽高比16:iframe的作为调整窗口大小,并保持9它的最大高度为100% - 67px calc(100% - 67px)。我怎么能在同一时间做这两个?
请提供iframe的链接,并解释更多,如果你能 – Microsmsm