jq修改hover样式

 

$("#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

 

posted @ 2019-04-17 16:48  君子笑而不语  阅读(1803)  评论(0编辑  收藏  举报