导航切换样式

发表于

<script>
 	$("#main-menu li a").each(function(){
        $this = $(this);
        if($this[0].href==String(window.location)){
            $this.parent().addClass("cur");
            $this.addClass('acur');
        }
    });
</script>

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注