1, ie 6,7,不支持 setAttribute("class","lihover"),

  ie 8+/以及ff,chrome,opera,safiri支持。

2  ie 8+/以及ff,chrome,opera,safiri不支持 setAttribute("classname","lihover"),

  ie6,ie7支持。 

3 所有都支持 element.className = "lihover"

相关文章:

  • 2022-01-22
  • 2021-09-21
  • 2021-05-25
  • 2021-06-15
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
猜你喜欢
  • 2021-10-11
  • 2021-09-18
  • 2021-09-13
相关资源
相似解决方案