我刚刚完成一个小网站,并在 IE7 中注意到徽标隐藏在主页上的图像后面:http ://reapvalue.com/
这是html:
<div id="wrap">
<div id="header">
<ul id="main-nav">
<li><a href="/about/">About</a></li>
<li><a href="/what-we-do/">What We Do</a></li>
<li class="last"><a href="/contact/">Contact</a></li>
</ul>
<h1><a href="/"><img id="logo" src="/photos/logo.png" alt="REAP - Renewable Energy and Preservation, April Montgomery, LLC." ></a></h1>
<h1><a href="/"><img id="logo-small" src="/photos/logo-small.png" alt="REAP - Renewable Energy and Preservation, April Montgomery, LLC." ></a></h1>
</div><!-- end #header -->
<div id="tagline">
<span class="green">renewable energy</span> <span class="magenta">and preservation</span>
</div>
<div id="main" class="clearfix">
<div id="Stage" class="EDGE-909290339"></div>
<img id="lead-image" src="photos/hickory.jpg" alt="hickory, nc preserveration district">
这是CSS:
#header { width: 960px; height: 53px; margin: 0 auto; position: relative; }
body#inside #header { height: 56px; }
img#logo { position: absolute; top: 0; left: 0; z-index: 5000; }
尽管将 z-index 设置为 5000,但它仍然隐藏在图像后面。将不胜感激将徽标放在前面的任何帮助。
谢谢。