今天介绍两种两列排列方法(表格及列表):
<table>
<tr>
{dede:arclist row='10'}
<td><a href="[field:arcurl/]">[field:title/]</a></td>
[field:global.autoindex runphp='yes']
if((@me % 2) == 0 && @me <> 10)
{
@me = '</tr></tr>';
}
else{
@me = '';
}
[/field:global.autoindex]
{/dede:arclist}
</tr>
</table>
<ul>
<li>
{dede:arclist row='10'}
<a href="[field:arcurl/]">[field:title/]</a>
[field:global.autoindex runphp='yes']
if((@me % 2) == 0 && @me <> 10)
{
@me = '</li><li>';
}
else
{
@me = '';
}
[/field:global.autoindex]
{/dede:arclist}
</li>
</ul>
<table>
<tr>
{dede:arclist row='10'}
<td><a href="[field:arcurl/]">[field:title/]</a></td>
[field:global.autoindex runphp='yes']
if((@me % 2) == 0 && @me <> 10)
{
@me = '</tr></tr>';
}
else{
@me = '';
}
[/field:global.autoindex]
{/dede:arclist}
</tr>
</table>
<ul>
<li>
{dede:arclist row='10'}
<a href="[field:arcurl/]">[field:title/]</a>
[field:global.autoindex runphp='yes']
if((@me % 2) == 0 && @me <> 10)
{
@me = '</li><li>';
}
else
{
@me = '';
}
[/field:global.autoindex]
{/dede:arclist}
</li>
</ul>