
灵动标签代码:
[e:loop={35,10,0,0,'','newstime DESC'}]<?
$day=date('Ymd',$bqr[newstime]);
if(!$n){
$n=0;
}
if($bqno==1){
$d=$day;
$t'.$n.'"';
}else{
if($d==$day){
$t'.$n.'"';
}else{
$n++;
$t'.$n.'"';
$d=$day;
}
}
?><a href="<?=$bqsr['titleurl']?>" target="_blank" <?=$class?>><?=$bqr['title']?>_______[<?=date('Ymd',$bqr[newstime])?>]</a> <br>
[/e:loop]
注意:<?=$class?>为class的css样式
--------------------------------------------------------------------------------------
css样式:
.t0 {
color: #DC143C;
text-decoration: none;
}
.t1 {
color: #FF1493;
text-decoration: none;
}
.t2 {
color: #0000FF;
text-decoration: none;
}
.t3 {
color: #008000;
text-decoration: none;
}
.t4 {
color: #FF4500;
text-decoration: none;
}
.t5 {
color: #00FF7F;
text-decoration: none;
}
注意:可以加跟多个,因为上面的6个(t0-t5)css颜色,剩下的将为默许的系统颜色
普通如果灵动标签调用10条信息就设置10个css颜色,既:10条信息对应10个驲期时候
转载请注明: 帝国CMS模板 » 帝国CMS灵动标签同驲信息颜色沟通(差别时候文章信息差别颜色)
*
回帖描述:*
链接类型:*
下载链接:*
描述:*
回帖描述:*
链接类型:*
阅读权限:*
下载链接:



聚优部落技术论坛 © 版权所有 鲁ICP备15007479号-6
Copyright(C)web.com, All Rights Reserved.
