背景色交替列表显示例

<#setting number_format="#">

<style>

.listhead {font-size: 9pt; }
.listbody {font-size: 9pt;}

</style>

<table border="1" width="100%" cellspacing="0" cellpadding="0" style="line-height: 150%" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
<tr bgcolor="#E8E8E0">
<td class=listhead nowrap b>序号</b/td>
<td class=listhead nowrap><b>文件编号</b></td>
<td class=listhead width="60%"nowrap><b>文件名称</b></td>
<td class=listhead nowrap><b>文件类别</b></td>
<td class=listhead nowrap><b>拟文部门</b></td>
<td class=listhead nowrap><b>浏览</b></td>
</tr>
<#list newslist as news>

<tr <#if news_index % 2==1>bgcolor=#f7f7f7 </#if> >
<td class=listbody align="center" nowrap >${news_index+1+(page-1)*countperpage}</td>
<td class=listbody nowrap >${news.wjbh}&nbsp;</td>
<td class=listbody nowrap >${news.wjmc}&nbsp;</td>
<td class=listbody nowrap >${news.wjlb}&nbsp;</td>
<td class=listbody nowrap >${news.nwbm}&nbsp;</td>
<td class=listbody nowrap >${news.fj}&nbsp;</td>

</tr>


</#list>
</table>