效果演示
灵动标签调用:
- [e:loop={"select * from {$dbtbpre}enewsclass order by myorder,classid desc",0,24,0}]
- <?php
- $_listyle="";
- if($bqr[classid]==$GLOBALS[navclassid]){$_listyle=' class="active"';}
- ?>
- <li<?=$_listyle?>><a href="/<?=$bqr[classpath]?>/"><?=$bqr[classname]?></a></li>
- [/e:loop]
提示:然后对类选择器.active写css样式即可,如:
- .active{color: #00a0e8;border-bottom: solid 3px #00a0e8;}