去掉超链接文字点击后的灰色框

解决方法:

1:expression表达式:a{star:expression(thisthis.onFocus=this.blur())}

    不推荐使用,消耗性能

 

2:JS解决

   

window.onload=function(){
var aLinks=document.getElementsByTagName('a');
for(var i=0;i<aLinks.length;i++)
{
aLinks[i].onfocus=function(){
this.blur();
};
}
}

3:jQuery解决

    

$(function(){
$('a').bind('focus', function(){
this.blur();
});
});

 

posted @ 2014-01-08 10:47  leejersey  阅读(824)  评论(0编辑  收藏  举报