股墓山庄

专注于AS3,JavaScript 每天一点进步,坚持...
  博客园  :: 首页  :: 新随笔  :: 联系 :: 管理

map area 中去掉IE中鼠标点击map时产生的虚线框

Posted on 2012-09-13 17:16  股墓山庄庄主  阅读(2069)  评论(0编辑  收藏  举报

chrome 下无虚线框,但是在ie8中鼠标点击的时候,会在map的area区域 产生虚线框。解决方法如下:

<map name="Map3" id="Map3">
  <area id="Map3_1" shape="poly" coords="9,196,29,197,125,117" href="#" onmouseover="showTip(this,event)" onmouseout="hideMsgBox(event)" onclick="ClickTip(this,event)" onfocus= "this.blur() "/>
  <area id="Map3_2" shape="poly" coords="144,3174,191,318" href="#" onmouseover="showTip(this,event)" onmouseout="hideMsgBox(event)" onclick="ClickTip(this,event)" onfocus= "this.blur() "/>
  <area id="Map3_3" shape="poly" coords="287,328,9,326" href="#" onmouseover="showTip(this,event)" onmouseout="hideMsgBox(event)" onclick="ClickTip(this,event)" onfocus= "this.blur() "/>
</map>