2015-06-18 12 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

如果您想要求澄清,请等到您获得发表评论的权限,而不是在带有“**您的答案**”的文本框中以粗体字 –