jQuery常用 最简导航栏样式 ** $(document).ready(function(){ $(".libdhs li a").each(function(){ $this = $(this); if($this[0].href==String(window.location)){ $(this).siblings().css("color","white"); $(this).css("color","yellow"); } }); });