我使用以下方法,在ie下可获取该热点的宽度
但在firfox下点击获取的却是图片imgId1的宽<div>
<img src="imgId1.gif" id="imgId1" name="imgId1" width="600" height="500" border="0" usemap="#imgId1Map"/>
<map name="imgId1Map" id="imgId1Map">
<area id="area1" shape="circle" coords="119,194,34" href="#" onclick="alert(this.offsetWidth);" />
<area id="area2" shape="circle" coords="229,258,28" href="#" />
</map>
</div>
但在firfox下点击获取的却是图片imgId1的宽<div>
<img src="imgId1.gif" id="imgId1" name="imgId1" width="600" height="500" border="0" usemap="#imgId1Map"/>
<map name="imgId1Map" id="imgId1Map">
<area id="area1" shape="circle" coords="119,194,34" href="#" onclick="alert(this.offsetWidth);" />
<area id="area2" shape="circle" coords="229,258,28" href="#" />
</map>
</div>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货