来自 juqng.com的博客

在ie6中的hover属性在非a链接是不支持的。就是说a:hover支持而li:hover不支持。介绍兼容的方法

Whatever:hover 3.11 使用了一个.htc文件
下载文件后在css加入

body { behavior: url("csshover3.htc"); }

使用JavaScript
加入sfHover函数IE6 :hover on non elements via javascript!然后设置对应的

var sfEls = document.getElementById("content").getElementsByTagName("ul");

相关文章:

  • 2021-09-06
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2021-10-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-09
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
  • 2022-12-23
相关资源
相似解决方案