dede實現列表頁隔行換色

CSS代碼:

<pre name="code" class="php"><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} 



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章