定义两个不同的样式控制如下所示:
<style>
.newsListWTD{ background:#ffffff; height:30px; width:auto;}
.newsListBTD{ background:#f5f5f5; height:30px; width:auto;}
</style>
把下面代码放到标签循环体
<tr>
<td class="newsListBTD"> </td>
<td class="newsListBTD"><a target="_blank" href='ShowNews-42|58|68-19428.html'><span class="font12B">文章标题文章标题文章标题文章标题文章标题文章标题文章标题</span></a></td>
<td align="center" class="newsListBTD"><span class="fontC1c1c1">2010-4-8 16:00:09</span></td>
</tr>
<tr>
<td class="newsListWTD"> </td>
<td class="newsListWTD"><a target="_blank" href='ShowNews-42|58|68-18961.html'><span class="font12B">文章标题文章标题文章标题文章标题文章标题文章标题</span></a></td>
<td align="center" class="newsListWTD"><span class="fontC1c1c1">2010-3-24 16:14:32</span></td>
</tr>