<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Video Ajustable</title>
<style>
* {
margin: 0;
padding: 0;
border: 0;
}
.video {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
max-width: 100%;
max-height: 100%;
}
</style>
</head>
<body>
<video class="video" loop autoplay onload="this.play()">
<source src="video.mp4" type="video/mp4" />
<source src="video.ogv" type="video/ogg" />
<source src="video.webm" type="video/webm" />
<img src="poster.jpg" class="video" />
</video>
</body>
</html>
No hay comentarios