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=http://www.dede58.com/"[field:arcurl/]">[field:title/]</a>
</li>
{/dede:arclist}