因此,我的视频链接在chrome / opera中可以正常工作,但在chrome / opera中却不能。
代码:
.video-background {
background: #000;
width: 100%;
height: 100%;
position: fixed;
top: 0; right: 0; bottom: 0; left: 0;
z-index: -99;
}
.video-foreground,
.video-background iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
<iframe class="video-background" type="text/html" src="http://www.youtube.com/embed/geGziPUQD2U?&autoplay=1&loop=1&rel=0&showinfo=0&list=PLpXlqJwU5cis4OzipK47kdhxQDpMspL56" frameborder="0" allowfullscreen></iframe>