我在客户端的网站上嵌入了HTML嵌入式视频背景,它在桌面上运行良好,但在移动设备上它并不是因为它需要设置更多参数。在手机上为网站设置背景图片滑块
所以我想显示图片的背景滑块时,网站加载在手机上。
我想加载的方式:Desktop = HTML视频/ Mobile-Tablet =滑块。
问题是我如何添加滑块并使其工作,请教?
PS:在一段HTML视频的码
<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:
#video_background {
position: absolute;
bottom: 0px;
right: 0px;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -1000;
overflow: hidden;
}
最好的问候:)
也许你想设置[海报图片](http://www.w3schools.com/tags/att_video_poster.asp)? – David
不,我想要一个包含多个图像的滑块,而不仅仅是一张静态图像! – Assim
没有答案? – Assim