联系官方销售客服
1835022288
028-61286886
<ul id="nav" class="fr">
<li class="n1 now on">
<a href="{SITE_URL}">首页</a>
</li>
<li class="n6 ">
<a href="javascript:void(0);">关于文旅</a>
<ul class="subnav" style="display: none;">
<li><a href="{SITE_URL}index.php?c=page&id=1">文旅简介</a></li>
<li><a href="{SITE_URL}index.php?c=page&id=2">组织架构</a></li>
<li><a href="{SITE_URL}index.php?c=page&id=3">下属子公司</a></li>
<li><a href="{SITE_URL}index.php?c=page&id=4">大事展示</a></li>
<li><a href="{SITE_URL}index.php?c=page&id=5">企业荣誉</a></li>
</ul>
</li>
<li class="n7 ">
<a href="{SITE_URL}index.php?s=boss&c=category&id=1">领导分工</a>
</li>
<li class="n8">
<a href="{SITE_URL}index.php?s=news&c=category&id=1">新闻动态</a>
</li>
<li class="n9 ">
<a href="javascript:void(0);">党群工作</a>
<ul class="subnav" style="display: none;">
<li><a href="{SITE_URL}index.php?s=party&c=category&id=2">党的建设</a></li>
<li><a href="{SITE_URL}index.php?s=party&c=category&id=3">群团工作</a></li>
</ul>
</li>
<li class="n11">
<a href="javascript:void(0);">文旅项目</a>
<ul class="subnav" style="display: none;">
<li class="n22"> <a href="{SITE_URL}index.php?s=case&c=category&id=5">旅游经营</a> </li>
<li class="n21"> <a href="{SITE_URL}index.php?s=case&c=category&id=4">文创综合体</a> </li>
<li class="n20"> <a href="{SITE_URL}index.php?s=case&c=category&id=3">主题景区</a> </li>
<li class="n17"> <a href="{SITE_URL}index.php?s=case&c=category&id=2">古街古镇</a> </li>
</ul>
</li>
<li class="n12 ">
<a href="{SITE_URL}index.php?s=zhidu&c=category&id=1">制度建设</a>
</li>
</ul>
导航栏是这样的 怎么判断当前页在什么位置然后在class里加now on呢?