我项目中的图像映射不起作用
The image map in my project is not working
图片映射在我的项目中不起作用,所以没有区域可以点击图片。
代码:
<td>
<map name="map" id="map">
<area alt="" title="" href="stat1.php" shape="rect" coords="51,568,116,618" />
<area alt="" title="" href="stat2.php" shape="rect" coords="140,567,202,612" />
<area alt="" title="" href="stat3.php" shape="rect" coords="226,568,290,613" />
<area alt="" title="" href="stat4.php" shape="rect" coords="51,627,116,676" />
<area alt="" title="" href="stat5.php" shape="rect" coords="139,626,204,677" />
<area alt="" title="" href="stat6.php" shape="rect" coords="225,627,292,677" />
</map>
<img src="img/commander6.png" usemap="#map" width="95%"/>
</td>
我也反过来试过,所以<img/>
标签在<map>
标签之前。
您需要删除
width="95%"
图片映射在我的项目中不起作用,所以没有区域可以点击图片。
代码:
<td>
<map name="map" id="map">
<area alt="" title="" href="stat1.php" shape="rect" coords="51,568,116,618" />
<area alt="" title="" href="stat2.php" shape="rect" coords="140,567,202,612" />
<area alt="" title="" href="stat3.php" shape="rect" coords="226,568,290,613" />
<area alt="" title="" href="stat4.php" shape="rect" coords="51,627,116,676" />
<area alt="" title="" href="stat5.php" shape="rect" coords="139,626,204,677" />
<area alt="" title="" href="stat6.php" shape="rect" coords="225,627,292,677" />
</map>
<img src="img/commander6.png" usemap="#map" width="95%"/>
</td>
我也反过来试过,所以<img/>
标签在<map>
标签之前。
您需要删除
width="95%"