在IE6下,单击超链接后会出现一个虚线框,有时候不需要这个选线框,去掉的方法是加上hidefocus属性,如:


<id="test" href="#" hidefocus="true">去掉虚线框</a> 

 

想要通过JS去掉的话,将hidefocus写成hideFocus,如:

 

var a = document.getElementById("test");  
a.hideFocus 
= true

 

相关文章:

  • 2021-07-29
  • 2022-01-30
  • 2022-12-23
  • 2021-06-28
  • 2021-07-22
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
相关资源
相似解决方案