当您滚动时,您会发现图像会移到导航栏上方而不是下方,就像其他内容一样。
最佳答案
使用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
}
关于html - 静态导航栏下的图像不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12588146/