只要加入hidefocus="true"的属性即可
如下:
<img src="some.jpg" border="0" usemap="#map" hidefocus="true">
或者可以使用js+css实现:
1.在area中加入onfocus="blur(this);"的属性也可以
2.area多的时候可以使用:
<style type="text/css">
<!--
area {
anything:expression(this.onfocus=this.blur);
}
-->
</style>
去除图片焦点高亮
本文介绍了两种有效的方法来解决网页中图片焦点高亮的问题:一是通过在HTML的img标签中添加hidefocus属性;二是利用JavaScript结合CSS的方式实现,具体包括在area标签中加入onfocus事件调用blur方法,或者使用CSS表达式实现。
697

被折叠的 条评论
为什么被折叠?



