ie6 hover 非a链接兼容方法[Htc]

来自 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");

原文地址:https://www.cnblogs.com/NetSos/p/1744369.html