I'm using videobackground.js for setting background video, I want to specify the height width for the video,

My code is:

$('.vid').prepend('<div class="video-background"></div>');
$('.video-background').videobackground({
videoSource: [['video/2.webm', 'video/webm']],
loop : true
});

Html code is:

<div class="vid">

</div>

How to specify the height width for the video, if I specify height width full video not showing

没有正确的解决方案

其他提示

I assume you are using the following plugin: http://georgepaterson.github.io/jquery-videobackground/

.video-background appears to be the container for the full screen video, so if you state the height and width of .video-background in your CSS, this should work. I've tried this successfully in developer tools on Chrome.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top