图片地图标记在使用Joomla 2.5的Google Chrome中不起作用?

时间:2013-06-07 09:39:02

标签: html joomla joomla2.5

任何人都可以告诉我这个html编码中的错误在哪里吗?

<object style="max-width: 100%;" data="images/solution_new.jpg" width="575" height="500" usemap="#Map" border="0"> </object> 
<map id="Map" name="Map"> 
<area shape="rect" alt="" coords="40,395,143,492" href="associates" />
<area shape="rect" coords="12,18,211,110" href="solutions/business-ob" />
<area shape="rect" alt="" coords="419,26,568,135" href="associates" />
<area shape="rect" coords="390,373,522,483" href="solutions/consumer-oc" />
</map>

非常感谢任何帮助!

2 个答案:

答案 0 :(得分:0)

让我觉得好像它还没有在Chrome中实现

http://www.whatwg.org/specs/web-apps/current-work/#attr-hyperlink-usemap

根据HTML规范,在对象标记中允许使用usemap,并且应该像处理 img 标记一样处理

您可能想要使用img而不是object

答案 1 :(得分:0)

使用<object><map>以及Chrome 26时遇到了同样的问题。将<object>更改为<img>解决了这个问题。