织梦dedecms列表实现隔五行一个直线:
这里调用了20条 每隔5条(5行)一分行
{dede:arclist row=40 titlelen=50 orderby=pubdate}<li><span>[field:stime/]</span><a href="[field:arcurl/]" target="_blank">[field:title/]</a> [field:global name=autoindex runphp="yes"]
if(@me%5==0)@me="<div class=\"xline\"></div>";
else @me="";
[/field:global]</li>{/dede:arclist}
这里调用了20条 每隔5条(5行)一分行
{dede:arclist row=40 titlelen=50 orderby=pubdate}<li><span>[field:stime/]</span><a href="[field:arcurl/]" target="_blank">[field:title/]</a> [field:global name=autoindex runphp="yes"]
if(@me%5==0)@me="<div class=\"xline\"></div>";
else @me="";
[/field:global]</li>{/dede:arclist}