2011-08-27 56 views
9

我在我的網站上有一個圖片地圖,它適用於除IE以外的所有內容。圖片地圖不能在IE中工作

這是代碼:

<div id="content"> 
    <div style="text-align:center; width:302px; margin-left:auto; margin-right:auto;"> 
    <img id="alexpeteNav" src="nav.jpg" usemap="Aalexpetenav" border="0" width="302" height="274" alt="" /> 
    <map id="BalexpeteNav" name="AalexpeteNav"> 
    <area shape="rect" coords="0,0,297,72" href="http://doubleohnine.com/" alt="009" title="009" /> 
    <area shape="rect" coords="0,68,297,140" href="about.html" alt="About alexpete" title="About alexpete" /> 
    <area shape="rect" coords="0,139,297,211" href="https://plus.google.com/104897364451129767176" alt="Google+" title="Google+" /> 
    <area shape="rect" coords="0,209,297,269" href="http://www.facebook.com/alexpete" alt="Facebook" title="Facebook" /> 
    </map> 
    </div> 
    </div> 

有什麼建議?原因是什麼?

該網站在線是在www.alexpete.com。

謝謝。

回答

22

usemap期望有效的hash-name reference對應於地圖名稱之前的圖像地圖,即#

我猜其他瀏覽器在這方面比較寬鬆。

+0

工作完美!謝謝! – 009

+0

@pekka你可以請看看我的問題,並幫助我http://stackoverflow.com/q/24078704/2118383 –