1 . |
a { noFocusLine: expression(this.onFocus = this.blur())},不知道兼容性怎么样 |
2 . |
在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> |
3 . |
a { outline : none ;star:expression(this.onFocus=this.blur());} 网页会很卡,可以改为下面,分开写 |
同时兼容IE和火狐浏览器: |
a { outline : none ;} |
a:active {star:expression(this.onFocus=this.blur());} |