【发布时间】:2014-02-14 08:34:18
【问题描述】:
我正在尝试创建一个全角 iframe vimeo 背景,该背景被位于我的 body div 中的图案所覆盖。视频被覆盖层覆盖,因此无法点击。我试过给视频 100% 的宽度和高度,但在覆盖屏幕时没有运气。我试图让视频以 500x250 像素弹出。
HTML
<div class="video">
<iframe src="//player.vimeo.com/video/82123812?title=0&byline=0&portrait=0&color=3a6774&autoplay=1&loop=1" width="960" height="540" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
<div class="overlay"></div>
</div>
CSS
.video {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%
}
.video .overlay {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: url(../img/overlay-pattern.png) repeat;
}
【问题讨论】:
标签: html css iframe video fluid-layout