下面是编程之家 jb51.cc 通过网络收集整理的代码片段。
编程之家小编现在分享给大家,也给大家做个参考。
1. a{ blr:expression(this.onFocus=this.blur());/*IE使用*/ outline-style:none;/*FF使用*/ } /*去除a标签带来的虚框*/ 2、全 局控制 CSS实现 a{blr:expression(this.onFocus=this.close());} /* 只支持IE,过多使用效率低 */ a{blr:expression(this.onFocus=this.blur());} /* 只支持IE,过多使用效率低 */ a:focus { -moz-outline-style: none; } /* 支持火狐 IE不支持 */ 方法一: <a onfocus=this.blur() href="javascript:void(0)" class="l-button" style="width:80px" onclick='log_1()'> <img id="img_a" border=0 align="middle" src="login_image/a_1.jpg" alt="没有图片!"> </img> </a> onfocus=this.blur() 增加这个,可以去掉! 方法二: 1.把以下代码存成一个1.htc的文件 <public:attach event="onfocus" onevent="quit()" /> <script language="javascript"> function quit(){ this.blur(); } </script> 2.在你的html文件head中加入以下代码,这样所有的连接都没虚线了 <style> a {behavior:url(1.htc)} area {behavior:url(1.htc)} </style> 总结方法: 去掉链接时的虚框只要在你的样式表中加入以下代码,就可以去掉链接时烦的的虚框 a,area { blr:expression(this.onFocus=this.blur()) } /* for IE */ :focus { -moz-outline-style: none; } /* for Firefox */
以上是编程之家(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。
如果觉得编程之家网站内容还不错,欢迎将编程之家网站推荐给程序员好友。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。