您的位置:首页 > 其它

几种点击连接时不出现虚边框的方法

2013-01-08 10:06 190 查看
1.使用JS

<script>
function document.onclick(){
if(event.srcElement.tagName=="A")
event.srcElement.blur()
}</script>
<a href=####>Testlink</a>


2.使用CSS

<style>
a{dovia:expression(this.onfocus=this.blur);cursor:hand}
</style>
<a href=####><img src=http://www.dovia.net/logo.gif border=0></img></a>


3.使用CSS

<a href=#### hidefocus=true style="cursor:hand"><img src=http://www.dovia.net/logo.gif border=0></img></a>


4.使用JS

<a href=# onfocus="blur()"><img src=http://www.dovia.net/logo.gif border=0></a>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: