1
私は自分のHTML文書にビデオの背景を追加しようとしています。私はそれを行う方法についてYoutbueのチュートリアルを見ました..私はすべてをコピーし、ビデオのような必要なファイルで私の文書に追加しましたが、問題はそれが私のビデオをロードしないということです。ここに私の文書の完全なコードは次のとおりです。背景ビデオが表示されない理由
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Video Background</title>
<style>
video#bgvid{
min-width:100%;
min-height:100%;
width:auto;
height:auto;
background: url(the_desert-wide2.png) no-repeat top center; /* replace **image link** with your own file*/
background-size:cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
}
</style>
</head>
<body>
<video id="bgvid" autoplay poster="img/bg.png"> <!-- replace **image link** with your own file -->
<source src="video.ogv" type="video/ogv" /><!-- replace **video link** with your own file -->
<source src="video.webm" type="video/webm" /><!-- replace **video link** with your own file -->
<source src="video.mp4" type="video/mp4" /><!-- replace **video link** with your own file -->
</video>
</body>
</html>
は基本的に映像が全く示されておらず、代わりにbg.png
ファイルが表示されます。私は、オペラ、FirefoxやChromeとIE上で文書を開いたが、何も?ありがとう
だからあなたは、私がビデオをロードするために何をすべきかを知っています:(表示されません!
が