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

相關文章
相關標籤/搜索