jq修改hover样式

 

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

 

能够参考w3c里的使用css

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

相关文章
相关标签/搜索