我在使用视频时获得了不同的高度:
#myVideo{
position: absolute;
z-index: 4;
right: 0;
bottom: 0;
top:0;
right:0;
width: 100%;
height: 100%;
margin-bottom: -100px;
background-color: black;
background-image: /* our video */;
background-position: center center;
background-size: contain;
object-fit: cover;
}
<video autoplay loop muted id="myVideo">
<source src="imgs/flowers.mp4" type="video/mp4">
<source src="imgs/flowers.webm" type="video/webm">
</video>
如何在chrome和mozilla中解决这些不同的高度。