织梦DeDeCms列表页隔行换色标签代码

2023/06/09 08:25    5G收录网    已浏览130次

织梦DeDeCms列表页隔行换色标签代码:
CSS代码:
1 <style type="text/css">
2 li a{ COLOR: #fff }
3 .red{ BACKGROUND-COLOR: red }
4 .blue{ BACKGROUND-COLOR: blue }
5 </style>
织梦标签代码:
1 {dede:arclist typeid='1' titlelen='40' row='20' typeid=""
2 <li [field:global name=autoindex runphp="yes"](@me % 2 == 0)?@me="class='red'":@me="class='blue'";[/field:global]>
3 <a href="[field:arcurl/]">[field:title/]</a>
4 </li>
5 {/dede:arclist}