2012-05-07 123 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錯誤。每天學習,謝謝。 –