直接用官方自带的那个标签不就可以了吗?
select id,title,keywords,hits,intro,adddate,author,(select count(id) from ks_comment where channelid=1 and infoid=ks_article.id) as commenttotal from KS_Article where tid in({$CurrClassChildID}) and deltf=0 and verific=1 order by id desc
<style>
dt a:link, dt a:visited{font-size:14px;font-weight:bold;color:#003366}
dt a:hover{color:#ff0000;text-decoration:none}
dd {font-size:12px;color:#555;line-height:26px}
.info span{color:#ff6600}
.info a:link,.info a:visited{color:#555;text-decoration:none}
.info a:hover{color:#555}
</style>
[loop=10]
<dl>
<dt><br><img src="../../Images/index_03.gif" width="5" height="9" align="absmiddle"/> <a href='{$Field(id,GetInfoUrl,1,1)}'>{$Field(Title,Text,0,...,0,)} </a></dt>
<dd >{$Field(intro,Text,0,...,0,)}</dd>
<dd class="info"><span>更新时间:</span> {$Field(Adddate,Date,YYYY-MM-DD)} <span> 作者:</span> {$Field(author,Text,0,...,0,)} <span> 评论总数:</span> {$Field(commenttotal,Num,0,2)}<span> 点击次数:</span> <font color=red>{$Field(hits,Num,0,2)}</font></dd>
</dl>
<div style="border-bottom:#ccc 1px dashed"></div>
[/loop]