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