0

我有以下CSS:

#header-fixed {
  background: url(images/header-fixed-bg.png) repeat-x 0 0;
  border-bottom: 1px solid #111;
  position: fixed;
  top: -70px;
  width: 100%;
  z-index: 1000;
  -webkit-box-shadow: rgba(0,0,0,0.3) 0 0 4px;
  -moz-box-shadow: rgba(0,0,0,0.3) 0 0 4px;
  box-shadow: rgba(0,0,0,0.3) 0 0 4px;
}

.large-bg-1 {
  background: url(images/large-bg-1.jpg) repeat 0 0;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
  background-position: 50% 0;
  position: relative;
  height: 294px;
  width: 100%;
}

我正在使用视差背景技术(当背景似乎比页面的其余部分滚动慢时)。但无论z-index我在固定菜单中添加多少,它仍然会被他们隐藏。

我该如何解决这个问题?

这是现场网站:http ://www.hfwebdesign.com/?ModPagespeed=off

4

1 回答 1

1

Set the other element's z-index to -1

于 2013-09-06T04:44:58.677 回答