在js中写: $("ul li").addClass("blue").siblings().removeClass("blue"); 在css加: .blue{ background-color: #4680ff; }