幾種點擊連接時不出現虛邊框的方法

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>
發佈了2 篇原創文章 · 獲贊 12 · 訪問量 15萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章