但是经过反复测试,autoindex这个标签在{dede:channelartlist}里无效,经过摸索,发现了一个比较好的解决办法:
用{dede:global name='itemindex'/}标签取代autoindex标签
{dede:global.itemindex runphp='yes'}
$aa=@me;
if($aa%2==0){
@me='row1';
}else{
@me='row2';
}
{/dede:global.itemindex}
">
{/dede:channelartlist}
这样子就在dedecms模板中channelartlist标签内实现dedecms 样式表css间隔隔行显示不同效果,只需要把代码插到class='这里插代码',ok 我想可能大家可以了解,网上能查到的信息基本没有,我无私的奉献下了。
