输入banner图图片脚本导航/分类

求帮我看看,为什么点击跳转到另外的页面导航栏样式没有改变_html/css_WEB-ITnose

$(document).ready(function(){	$("#memu a").each(function(){	  $this= $(this);	  if($this[0].href==String(window.location)){		  $this.addClass("active");	  }  });	});

  • 首页
  • 产品
  • 服务
  • 案例
  • 联系我们


回复讨论(解决方案)

$this.parent().addClass("active");

$this.parent().addClass("active");

还是不行啊

调试找原因

刷新下页面。

调试找原因

已解决,谢谢