鼠标悬浮改变背景颜色

     $("#xxgd li").mouseover(function () {
            $("#xxgd li a").css({ "color": "#000" });
            $(this).css({ "background-color": "#e0e0e0" });
        }).mouseout(function () {
            $("#xxgd li a").css({ "color": "#000" });
            $(this).css({ "background-color": "" });
        });

原文地址:https://www.cnblogs.com/wangtiantian/p/4998483.html