I see some sites in some of the article list, such as the recommended Articles section, a whole page of the article list will look a little messy feeling, in each row or every n rows of column table article inserted horizontal line, it feels pretty good, so here find two ways to share with you.
Method One:
The code is as follows:
{dede:arclist typeid= ' 1′titlelen= ' 40′row= ' 20′typeid= ' "}
<a class= "Syh" href=http://www.dedecode.com/"[Field:arcurl/]" title= "[Field:title function= ' Htmlspecialchars (@ Me) '/] "
Target=_blank>[field:title function= "Cn_substr (@me,)"/]</a>
[Field:global name=autoindex runphp= "yes"]if (@me%10==0) @me = "";
else @me = "";
[/field:global]
{/dede:arclist}
If you define the relevant CSS, such as: "Syh" is interlaced color
Method 2:
The code is as follows:
{dede:arclist typeid= ' 1′titlelen= ' 40′row= ' 20′typeid= ' "}
<li><a href=http://www.dedecode.com/"[field:arcurl/]" >[field:title/]</a></li>
[Field:global name=autoindex runphp= "yes"] (@me% 5 = = 0) [Email protected]= "<li class=\" bline\ "></li>": @me = ""; [/field:global] {/dede:arclist}
If you define the relevant CSS, that is, every 5 lines plus a horizontal line, 20 lists and three lines are not four, the last one generally do not add a divider line, if you want to add a divider at the end, remove.
Dedecms article list every 5 interlaced horizontal line implementation method