公司的网站对话窗是一张图片,点击了就会出现线框,十分难看,用了这个完美解决了问题!
只要加入hidefocus="true"的属性即可
如下:
<img src="my.jpg" border="0" usemap="#map" hidefocus="true">(这个我是三个area的,用了还是出现边框,应该只有一个area的才正常使用吧)
或者可以使用js+css实现:
1.在area中加入onfocus="blur(this);"的属性也可以 (这个亲自试过正常使用);
2.area多的时候可以使用:
<style type="text/css">
<!--
area {
anything:expression(this.onfocus=this.blur);
}
-->
</style>
评论