列表隔5行加一行线:
复制代码
代码如下:
	
	{:list pagesize='50'} 
	<LI><a href="[field:arcurl /]" title="[field:title function='htmlspecialchars(@me)'/]" 
	target=_blank>[field:title function="cn_substr(@me,48)"/]</a>[field:pubdate runphp='yes'] 
	$a="<font color=red>".strftime('%m-%d',@me)."</font>"; 
	$b=strftime('%m-%d',@me); 
	$ntime = time(); 
	$day3 = 3600 * 24; 
	if(($ntime - @me) < $day3) @me = $a; 
	else @me =$b; 
	[/field:pubdate]
	
	[field:global name=autoindex runphp="yes"] 
	if(@me%5==0)@me="<hr />"; 
	else @me=""; 
	[/field:global] 
	{/dede:list} 
	<DIV></DIV></LI> 
查看更多关于Dede实现文章列表隔行换背景色让显示内容有所区别的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did187891