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

  • A+
所属分类:仿站

织梦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} 

avatar

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: