xiaoliu66007

 

$("#resTree").hover(function(){
            $(this).css("background-color","yellow");//hover时效果
        },function(){
            $(this)css("background-color","pink");//非 hover时效果
        });

 

可以参考w3c里的使用

http://www.runoob.com/jquery/event-hover.html

 

分类:

技术点:

相关文章:

  • 2021-05-24
  • 2021-05-25
  • 2021-10-25
  • 2021-12-12
  • 2021-12-31
  • 2021-12-31
  • 2021-11-04
  • 2021-05-29
猜你喜欢
  • 2021-12-31
  • 2021-12-31
  • 2020-03-13
  • 2021-05-20
  • 2021-12-14
  • 2021-09-04
  • 2021-10-24
相关资源
相似解决方案