Jslfl【软件开发技术笔记】

JQuery实现鼠标滑过时变色效果

1
2
3
4
5
$(function() {
    $(".docItem").mouseover(function(){  
        $(this).addClass("highlight");}).mouseout(function(){
        $(this).removeClass("highlight");})
});

给所有class=docItem的容器加上高亮效果

,

Comments are currently closed.