CSS我想要一个div在一切之上 [英] CSS I want a div to be on top of everything
本文介绍了CSS我想要一个div在一切之上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使html div标记位于所有内容之上?
How do I make an html div tag to be on top of everything?
推荐答案
为了使z-index可以工作,你需要给元素一个位置:absolute
或 position:relative
属性。一旦你这样做,你的链接将正常工作,虽然你可能需要调整你的CSS稍后。
In order for z-index to work, you'll need to give the element a position:absolute
or a position:relative
property. Once you do that, your links will function properly, though you may have to tweak your CSS a bit afterwards.
这篇关于CSS我想要一个div在一切之上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文