css中 如何去掉a标签的边框!!

html-css010

css中 如何去掉a标签的边框!!,第1张

楼主如果说的是a标签的下划线,那么直接text-decoration:none就可以去掉

如果是a标签点击后产生的虚线框,有以下处理方法:

a{blr:expression(this.onFocus=this.blur())}//IE下    a:focus{outline:none}//FF下

a.hidefocus{outline:none}

去除a标签中图片的表框,那就直接css中将a标签中的img的border属性设置为0即可,css如下:

a img{border:0}

这样写的意思就是所有a标签下的图片,边框都为0。