map点击后出现的蓝框及虚线解决方法

map在IE里面去掉虚框,google里面去掉蓝框??

<img src="pros01_01.png" usemap="#Map" hidefocus="true"/>
<map name="Map">
     <area target="_blank" shape="rect" coords="181,38,623,366" href="#">
     <area target="_blank" shape="rect" coords="648,4,1096,300" href="#">
</map>

去掉IE里面的虚框

方法一:<img src="pic.jpg" width="134" height="115" border="0" usemap="#Map" hidefocus="true" />添加hidefocus="true"

方法二:<area target="_blank" shape="rect" coords="648,4,1096,300" href="#" onfocus="blur(this);">添加onfocus="blur(this);"

去掉Google里面的蓝框

为area添加css样式 area{outline:0 none; border:0 none;}

posted @ 2016-03-11 16:10  凌小麦  阅读(650)  评论(0)    收藏  举报