0

Can somone take a look and see why my site tagline when scrolling down the page stays above the navigation and does not go behind.

Here is the css for my tagline

#banner-tagline {
color: #FFFFFF;
font-size: 44px;
position: relative;
text-align: center;
z-index: 99999;
top: 50%;
}

http://jobspark.ca/

enter image description here

4

2 回答 2

1

将 设置z-index为 4。您的顶部标语为 z-index:5。z-index 为 5 的那个隐藏了一个 4 的。

每个元素的 Z 位置被视为layer ordering并表示为一个整数,表示用于渲染的堆叠顺序。

于 2013-06-04T15:56:59.597 回答
0

这是因为您的“Z-Index”设置为 9999。它位于最上层。将 z-index 设置为 -9999。

于 2013-06-04T15:55:46.750 回答