默认显示第一个特效

浏览551

<?php $avc_a=0;?>

<{looptable table="news_article" as="v" where="cid=28" title="id,title,content,biaoji,jtq1,jtq2,td" sort="sort desc,id desc" limit="4"}>


<li class="define <{if $avc_a==0}>active<{/if}>">  <{/li}>      //active  

<?php $avc_a++;?>


<{/looptable}>


  • 暂无任何回答