我的要求是在显示新闻时比方说是10条新闻,它可以自动分两列并排显示各五条新闻,请问下怎么弄啊?谢谢啦!
 相关的代码如下
<ul><table width="100%" height="160" cellpadding="0" cellspacing="0" >
          <tr>
            <td><table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <% set rs9=server.CreateObject("ADODB.RecordSet") 
rs9.Source="select top 5 * from "& db_EC_News_Table &" where E_typeid=21 and E_bigclassid=66 order by newsid desc"
rs9.Open rs9.Source,conn,1,1
if rs9.EOF then
Response.Write "<tr><td align=center>目前暂无推荐内容</td></tr>"
end if
do while not rs9.EOF
if showyear=1 then
datetime="<font class=newsdate>[" & year(rs9("UpdateTime"))  &"/"& Month(rs9("UpdateTime"))  &"/"& Day(rs9("UpdateTime")) &"]</font>"
else
datetime="<font class=newsdate>["& Month(rs9("UpdateTime"))  &"/"& Day(rs9("UpdateTime")) &"]</font>"
end if
title=trim(rs9("title"))%>
                <tr>
                  <td width="2%" height="20">&nbsp;</td>
                  <td width="3%"><img src="images/arrow.gif" width="20" height="20" align="absmiddle" /></td>
                  <td width="95%"><a class="middle" target="_blank" href="E_ReadNews.asp?NewsId=<%=rs9("newsid")%>" title="<%=CutStr(nohtml(rs9("Content")),100)%>"><%=CutStr(htmlencode4(title),30)%></a><%=datetime%></td>
                </tr>
                <tr>
                  <td height="1" colspan="3" background="IMAGES/bg_line.gif"></td>
                </tr>
                <%rs9.movenext
loop
rs9.close
set rs9=nothing%>
            </table></td>
                  </tr>
              </table></td>
          </tr>
        </table></ul>