最终我的用法是在CSS文件直接加入:
a {outline: none;}
a:active {star:expression(this.onFocus=this.blur());}
:focus { outline:0; }
如果页面上只有一两个链接的话,直接加到<a>里面也行,就像这样
<a href=”#” onFocus=”this.blur()”><img src=”logo.jpg” border=0></a>
以下是解决方案:
方法一:
在IE下是使用html属性:hideFoucs,在HTML标签中加上hidefocus=”true” 属性即可,但这个属性是IE私有的,Firefox是不认的。

Firefox的处理方法比较符合标准,只需要在样式里设置a:focus{outline:none}皆可:
.xzw_test a.setFocus:focus{outline:none}
方法二:
通过javascript方法让其点击后失去焦点从而达到没有虚线框,也不失为一种曲线救国的方案:
1
//通过判断可以指定某个必要的链接失去焦点
2
if(j(this).attr("id")=="jsControl")
3
j(this).blur();

2

3
