一个html5代码,一个css的 想让gif图浮在视频上方的效果
<div class="bg">
<video width="1899" autoplay="autoplay" loop="loop">
<source type="video/mp4" src=""/>
</video>
<div class="fd_gif"><img src="../.gif"/></div>
</div>
<style>
.bg {position: relative;}
.fd_gif {position: absolute;z-index:99;top:0;left:0;}
</style>
<video width="1899" autoplay="autoplay" loop="loop">
<source type="video/mp4" src=""/>
</video>
<div class="fd_gif"><img src="../.gif"/></div>
</div>
<style>
.bg {position: relative;}
.fd_gif {position: absolute;z-index:99;top:0;left:0;}
</style>
温馨提示:答案为网友推荐,仅供参考