The method of changing the background color of the article list interlaced by Dede
Editor to share with you Dede to achieve the article list interlaced to change the background color, I hope you will learn a lot after reading this article, let's discuss it together!
How does Dede change the background color of the article list by interlacing?
The interlaced color change of the article list can make the two pieces of content different. Many websites use the interlaced color change method in the list page. Let's share with you how Dede is realized.
Recommended study: dream weaving cms
Dede can also change the background color of the list interlaced like the forum. Let's take a look at it. Article list interlaced color change can make a difference between the two pieces of content, many websites use interlaced color change display method in the list page, below I will cms to achieve interlaced color change paste, so that friends in need can refer to the following modification.
The list is separated by 5 lines plus one line:
The code is as follows:
{: list pagesize='50'} [field:title function= "cn_substr (@ me,48)" /] [field:pubdate runphp='yes'] $a = ".strftime ('% mmurc% dudes)."; $b=strftime ('% mmurc% dudes)); $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= "; else @ me="; [/ field:global] {/ dede:list} after reading this article, I believe you have a certain understanding of the method of changing the background color of the article list interlaced by Dede. Want to know more about it, welcome to follow the industry information channel, thank you for reading!