Home > CMS Tutorial > DEDECMS > How does DedeCMS arclist tag realize two-column arrangement in tables and lists?

How does DedeCMS arclist tag realize two-column arrangement in tables and lists?

藏色散人
Release: 2019-12-28 09:13:34
Original
2071 people have browsed it

How does DedeCMS arclist tag realize two-column arrangement in tables and lists?

How does DedeCMS arclist tag realize two-column arrangement in tables and lists?

Today we introduce two two-column arrangement methods (table and list):

Recommended learning: Dream Weaver cms

The code is as follows:

<table> 
<tr> 
{dede:arclist row=&#39;10&#39;} 
<td><a href="[field:arcurl/]">[field:title/]</a></td> 
[field:global.autoindex runphp=&#39;yes&#39;] 
if((@me % 2) == 0 && @me <> 10) 
{ 
@me = &#39;</tr></tr>&#39;; 
} 
else{ 
@me = &#39;&#39;; 
} 
[/field:global.autoindex] 
{/dede:arclist} 
</tr> 
</table> 
<ul> 
<li> 
{dede:arclist row=&#39;10&#39;} 
<a href="[field:arcurl/]">[field:title/]</a> 
[field:global.autoindex runphp=&#39;yes&#39;] 
if((@me % 2) == 0 && @me <> 10) 
{ 
@me = &#39;</li><li>&#39;; 
} 
else 
{ 
@me = &#39;&#39;; 
} 
[/field:global.autoindex] 
{/dede:arclist} 
</li> 
</ul>
Copy after login

The above is the detailed content of How does DedeCMS arclist tag realize two-column arrangement in tables and lists?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template