javascript - Video height difference in chrome and mozilla -


i getting different height while using video:

#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> 

how can solve different heights in chrome , mozilla.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -