문제

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