急,高手帮我看下这个循环

2016-07-07 15:13 来源:www.chinab4c.com 作者:ecshop专家

<div id="mainNav" class="clearfix ">
<ul class="u1" onmouseover="this.className='u1 u1_over '" onmouseout="this.className='u1'">
<a class="a1"href="index.php">首页</a>
</ul>
<ul class="u1" onmouseover="this.className='u1 u1_over'" onmouseout="this.className='u1'">
<a href="category-12.html"class="a1">酸萝卜</a>
</ul>
我用下面的栏目能调出来,可没有样式。
<div id="mainNav" class="clearfix ">
<ul class="u1" onmouseover="this.className='u1 u1_over '" onmouseout="this.className='u1'">
<a href="../index.php"{if $navigator_list.config.index eq 1} class="a1"{/if}>{$lang.home}</a>
</ul>
<!-- {foreach name=nav_middle_list from=$navigator_list.middle item=nav} -->
<ul class="u1" onmouseover="this.className='u1 u1_over'" onmouseout="this.className='u1'">

<a href="{$nav.url}" {if $nav.opennew eq 1}target="_blank" {/if} {if $nav.active eq 1} class="a1"{/if}>{$nav.name}</a>
</ul>
<!-- {/foreach} -->

回答:
我来顶顶

遇到什么问题呢。



仿那个站的自定义导航。