z-index 和绝对位置的问题
我又遇到了 z-index 的问题。 请检查页面
http://webakery.asia/projects/valentine/
在右侧我绝对有定位带有花朵的图片,但它们与导航重叠,最终影响导航中链接的功能。我想把那些花藏在导航后面。 我一直在玩弄 z 索引,但仍然找不到方法。有人可以帮忙吗?
谢谢
I have problem with z-index again.
Please check page
http://webakery.asia/projects/valentine/
On the right side I have absolutely positioned picture with flowers, but they are overlaping navigation and eventually affect functionality of links in navigation. I want to hide those flowers behind navigation.
I have been playing around with z-indexes, but still cannot figure out the way. Can anyone help please?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您必须将
section
的z-index: 100
更改为z-index
小于 50(您的导航 z-index),例如将
position:relative
添加到您的nav
You have to change your
z-index: 100
toz-index
less than 50 (your navigation z-index) forsection
, e.g.and add
position: relative
to yournav
我认为 div.flowers 应该在你的标签之外,
试试这个..在 -1 部分创建 z-index 并看看一切都在你的导航后面。
我认为你应该将 div.flowers 移到你的块之外,然后独立分配它的 z-index 。事实上,你可以整天改变它,但重要的 z-index 属于
i think div.flowers should be outside of your tag
try this.. make the z-index on section -1 and look how everything goes behind your nav.
i think you should move div.flowers outside of your block and then assign its z-index independently. As is, you can change it all day, but the z-index that matters belongs to