2010-07-22 47 views
0

我正在创建一个jQTouch原型,并想用影像地图,例如:jQTouch - 它支持图像映射吗?

<img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap" /> 

<map name="planetmap"> 
    <area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun" /> 
    <area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury" /> 
    <area shape="circle" coords="124,58,8" href="venus.htm" alt="Venus" /> 
</map> 

出于某种原因,这似乎并没有在JQTOUCH是工作 - 任何人有这样的经验吗?

回答

1

使用目标= “_ Web应用程序” 属性,它应该工作...

所以:

<map name="planetmap"> 
    <area target="_webapp" shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun" /> 
    <area target="_webapp" shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury" /> 
    <area target="_webapp" shape="circle" coords="124,58,8" href="venus.htm" alt="Venus" /> 
</map>