2012-05-07 58 views
0

我认为它是因为定位,填充和边距。但是我确实无法在元素菜单上适合这个imagemap。只有IE浏览器显示它在好办法:http://xn--wiadomesny-37b.pl/bg/Imagemap仅适用于IE

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"l lang="pl"> 
<head> 
<meta charset="utf-8"> 
<title>{TITLE}</title> 
<meta name="keywords" content="{H1}" /> 
<meta name="description" content="{DESC}" /> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" /> 
<link rel="stylesheet" type="text/css" href="css/style.css" /> 
<script src="js/jquery-1.6.1.min.js" type="text/javascript"></script> 
<link rel="stylesheet" href="css/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" /> 
</head> 
<body> 
<div class="outer_wrapper"> 
    <div class="content_bg"> 

    <div class="wrapper"><div class="promo"><img src="images/header.png" width="655" height="238" /></div> 
     <div class="menu"><img src="images/menu.png" width="601" height="158" usemap="#Map" /> 
     <map name="Map" id="Map"> 
      <area shape="circle" coords="66,86,64" href="#" alt="" /> 
      <area shape="circle" coords="217,68,68" href="#" alt="" /> 
      <area shape="circle" coords="371,69,64" href="#" alt="" /> 
      <area shape="circle" coords="529,88,67" href="#" alt="" /> 
     </map> 
     </div> 
     <div class="content"><div class="content_text">{CONTENT}</div></div> 
     <div class="sider"> 
     <div class="sider_top"></div> 
     <div class="sider_bg">{SIDEBAR}</div> 
     <div class="sider_bottom"></div> 
     </div> 
     <div class="footer"> 
     <div class="footer_left">{FOOTER}</div> 
     <div class="footer_right"><strong>Wykonanie</strong>: <a href="http://www.firmowa-strona-www.pl" title="Tanie strony www firmowe">Firmowa Strona WWW</a></div> 
     </div> 
    </div> 
    </div> 
</div> 
</body> 
</html> 

回答

4

的问题正在被z-index在这条规则造成的:

.content_bg { 
    background-image: url("../images/bg_overlay.png"); 
    background-position: center 40px; 
    background-repeat: no-repeat; 
    height: 814px; 
    margin: 0; 
    padding: 40px 0 0; 
    position: relative; 
    width: 100%; 
    z-index: -20; /* remove this line */ 
} 
+0

为什么它会导致什么问题? –

+1

@超链接:首先,该规则似乎并不需要,网站在没有它的情况下仍然完美。但它弄虚作假的原因是因为你已经有效地将所有内容都发送到了'.outer_wrapper'后面。你可以通过添加这个规则来测试'.outer_wrapper {background:#000;}',你会看到一切消失。 – tw16

+0

哦,所以我点击.outer_wrapper。它如此begginer错误。每天学习,谢谢。 –