我的网站上有一个响应式的iFrame,但是在大多数非移动屏幕上查看它时,它不适合容器的大小。我如何让iFrame伸展到容器大小或让容器不要超过我的iFrames当前最大尺寸?提前谢谢。
网站Waterlessbuddys.com稍微向下滚动,您会找到iFrame。
.embeded-video {
position: relative
}
.embeded-video .ratio-img {
display: block;
width: 100% !important;
height: auto !important;
}
.embeded-video IFRAME {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

<div class="embeded-video">
<img class="ratio-img" src="http://placehold.it/16x9" alt="16:9 Image" />
<iframe src="http://abc11.com/video/embed/?pid=835255"></iframe>
</div>
&#13;