html - 静态导航栏下的图像不起作用

标签 html css

检查:www.trillie.nl

当您滚动时,您会发现图像会移到导航栏上方而不是下方,就像其他内容一样。

最佳答案

使用z-index:9999;你的问题就解决了

#navigation {
    background-color: rgba(1, 1, 1, 0.8);
    box-shadow: 0 0 8px 0 #000000;
    color: rgba(1, 1, 1, 0.8);
    height: 35px;
    padding-top: 15px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;   // here is 
}

enter image description here

关于html - 静态导航栏下的图像不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12588146/

相关文章:

css - 下拉菜单淡入淡出效果

css - IE 怪癖模式和 IE 非怪癖模式之间 Div 宽度上的 CSS 问题

css - 如何在<div></div>的框外显示文字

css - 导航接管其他 <a href> 标签

javascript - 全屏选项

html - 如何让韩语字符显示在网站上?

html - WordPress 循环中的第 n 个 child ?

html - 在具有更高 z-index 的重叠 div 上可见光标

html - 如何在不垂直滚动标题的情况下使 DIV 成为浏览器的 100% 高度

css - 如何在使用绝对定位元素调整布局大小时保持比例