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