代码改变世界

文章分类 -  HTML+CSS

去掉点击链接时周围的虚线框outline属性

2011-09-29 17:26 by E世年华, 183 阅读, 收藏,
摘要: 1. CSS方式在IE下是使用html属性:hideFoucs,在HTML标签中加上hidefocus=”true” 属性即可,但这个属性是IE私有的,Firefox是不认的。<a href="#" hidefocus="true" title="加了hidefocus" >加了hidefocus属性</a>IE中用CSS处理的方式为:a{noOutline:expression(this.onFocus=this.blur());}/* "onFocus" 注意大小写*/Firefox的处 阅读全文