【发布时间】:2015-12-21 02:30:20
【问题描述】:
我的客户的网站背景视频无法在移动设备(Android 和 iOS)上加载,但在台式机/PC 上运行良好。
直接视频链接:
这是我正在使用的一段代码:
#video_background {
position: absolute;
bottom: 0px;
right: 0px;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -1000;
overflow: hidden;
}
<video id="video_background" preload="auto" autoplay="true" loop="loop" muted="muted" volume="0" poster="">
<source src="videos/video-1.webm" type="video/webm">
<source src="videos/video-1.mp4" type="video/mp4">
<source src="videos/video-1.ogg" type="video/ogg">
<p>Your browser does not support the video element. Try this page in a modern browser!</p>
</video>
这是问题的截图证据:
该网站完全响应。这是 CSS 布局文件的直接链接:www.jossefbn.com/test/css/layout.css
【问题讨论】:
标签: android html css video background