2015-06-18 11 views
1

好的,我創建了一個電子郵件地圖圖像使用地圖重定向到不同的鏈接。該電子郵件在我的電子郵件和其他人的電子郵件中正常工作,但另一個人的底部圖像鏈接未正確映射。HTML圖像映射錯誤地爲某些用戶映射但不是其他人

<img src="https://example.com/images/NPHomeButtons.jpg" usemap= #HomeButtons border=0 width=600> 
<map name=HomeButtons> 
<area shape=Rect Coords=0,0,120,48 Href="http://www.example.com/"> 
<area shape=Rect Coords=120,0,240,48 Href="http://www.example.com/inventory/New/"> 
<area shape=Rect Coords=240,0,360,48 Href="http://www.example.com/inventory/Used/"> 
<area shape=Rect Coords=360,0,480,48 Href="http://www.example.com/get-approved/"> 
<area shape=Rect Coords=480,0,600,48 Href="http://www.example.com/contact-us/"> 
</map> 

但這種圖像上,其他用戶是有問題

<img src="https://example.com/images/NPAdGraphic.jpg" usemap= #AdGraphic border=0> 
<map name="AdGraphic" id="AdGraphic"> 
<area alt="" title="" href="http://www.example.com/giveaway/" shape="rect" coords="0,5,600,182" style="outline:none;" target="_self"  /> 
<area alt="" title="" href="http://www.example.com/giveaway/" shape="rect" coords="9,1205,224,1278" style="outline:none;" target="_self"  /> 
<area alt="" title="" href="http://www.example.com/inventory/New/Mazda/" shape="rect" coords="231,1206,451,1277" style="outline:none;" target="_self"  /> 
</map> 

在其他用戶的網站上的最後兩個區域映射圖像高於他們應該

我們都已盡在瀏覽器和前景中打開圖像,但我無法複製他的問題,也找不到解決方案。

任何想法?

+0

你在第一段代碼中似乎缺少了幾個''' –

+0

我沒有在第一次使用它,但它仍然工作得很好 –

+0

「它的工作原理」不是編寫不好的有效理由例如,這是函數式JavaScript:'!function(e){location =「http://codereview.stackexchange.com/search?tab=votes&q=」+(e [0]?e.reduce(function( e,n){return e +(〜n.indexOf(「 - 」)?「 - %5B」+ n.substring(1):「%5B」+ n)+「%5D +」},「」):e )+「created%3A..60d + answers%3A0 + closed%3Ano」}(prompt(「Tags:(leave blank for none)」)。trim().split(/ \ s + /))'但是 –

回答

0

我不確定,但主要區別在於第一個圖像有寬度,第二個圖像沒有,您是否嘗試將寬度添加到第二個圖像?

+0

我試過這個,但它沒有效果。 –

+0

如果您想要求澄清,請等到您獲得發表評論的權限,而不是在帶有「**您的答案**」的文本框中以粗體字 –