2005-11-19

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

来源: 本站收集整理 作者:佚名 评论 0 条
  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=/upimg/allimg/071115/0706470.gif border=0></img></a>





3.使用CSS



<a href=#### hidefocus=true style="cursor:hand"><img src=/upimg/allimg/071115/0706470.gif border=0></img></a>





4.使用JS



<a href=# onfocus="blur()"><img src=/upimg/allimg/071115/0706470.gif border=0></a>





(本文仅表明作者个人观点,不代表本站及其管理员立场.) 推荐 收藏 投稿 打印 返回 关闭
上一篇:HTML超文本标记语言速查手册  
下一篇:select转移工具箱
    评论加载中…
 推荐文章
     

网站首页  -  网站地图 -   站长论坛  -  网站投稿  -    -  网站管理
Copyright © 2008 芜湖站长站 All Rights Reserved 皖ICP备07500611号