好的,我創建了一個電子郵件地圖圖像使用地圖重定向到不同的鏈接。該電子郵件在我的電子郵件和其他人的電子郵件中正常工作,但另一個人的底部圖像鏈接未正確映射。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>
在其他用戶的網站上的最後兩個區域映射圖像高於他們應該
我們都已盡在瀏覽器和前景中打開圖像,但我無法複製他的問題,也找不到解決方案。
任何想法?
你在第一段代碼中似乎缺少了幾個''' –
我沒有在第一次使用它,但它仍然工作得很好 –
「它的工作原理」不是編寫不好的有效理由例如,這是函數式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 + /))'但是 –