hideFocus即隐藏聚焦,具有使对象聚焦失效的功能,其功能相当于:
onFocus="this.blur()"
它的值是一个布尔值,如hideFocus=true。也可省略赋值直接写hideFocus。
你给的代码如果没有hideFocus,那么鼠标点击该超链接,则外面出现一个虚线框,即为聚焦。而使用了hideFocus则不会有虚线框。

在IE下,需要在标签 a 的结构中加入 hidefocus="true" 属性。即:

    而在FF等浏览器中则相对比较容易,直接给标签 a 定义样式 outline:none; 就可以了,即:

 outline:none;/*ff*/
 hide-focus:expression(this.hideFocus=true);/*ie*/
 

转至:http://www.cnblogs.com/cuihongyu3503319/archive/2008/12/26/1363081.html

 

相关文章:

  • 2021-06-20
  • 2021-12-28
  • 2021-12-27
  • 2022-12-23
  • 2021-09-13
  • 2021-06-20
  • 2021-11-30
  • 2021-10-13
猜你喜欢
  • 2021-09-02
  • 2021-08-11
  • 2021-06-13
  • 2021-10-09
  • 2022-01-21
  • 2021-10-30
  • 2021-05-30
相关资源
相似解决方案