HTML5 如何让一个div浮在另一个div上?

一个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>
温馨提示:答案为网友推荐,仅供参考
第1个回答  2016-07-09
首先这两个元素的position不能为static,z-index才能有效
第2个回答  2016-07-09
解决不了+123220663,给分包你会

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网