主题:一个ASP文章标题的问题????,请大哥们帮看看怎么解决
现在我想实现一个问题就是让文章标题这样去排 文章标题1 文章标题2
文章标题3 文章标题4,
这样分两行两列去排,应该怎么实现,下面是有关的代码,请高手指教一下,(下边的代码是一行一列的排,就直接往下排)
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<%
strSql="select top 5 * from [paper] where type='8' order by id desc"
set rs=Server.CreateObject("ADODB.RecordSet")
rs.open strSql,conn,3,3
%>
<tr>
<td height="17" class="font">
<%do while not rs.eof%>
<font color="#FF6600">·</font><a href="nei/sub_paper.asp?id=<%=rs("id")%>&type=8" target="_blank" class="menu"><font color=<%=rs("color")%>><%=left(rs("title"),11)%></font></a>
<%
rs.movenext
if not rs.eof then
response.write "<br>"
end if
loop%>
</td>
</tr>
</table>
文章标题3 文章标题4,
这样分两行两列去排,应该怎么实现,下面是有关的代码,请高手指教一下,(下边的代码是一行一列的排,就直接往下排)
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<%
strSql="select top 5 * from [paper] where type='8' order by id desc"
set rs=Server.CreateObject("ADODB.RecordSet")
rs.open strSql,conn,3,3
%>
<tr>
<td height="17" class="font">
<%do while not rs.eof%>
<font color="#FF6600">·</font><a href="nei/sub_paper.asp?id=<%=rs("id")%>&type=8" target="_blank" class="menu"><font color=<%=rs("color")%>><%=left(rs("title"),11)%></font></a>
<%
rs.movenext
if not rs.eof then
response.write "<br>"
end if
loop%>
</td>
</tr>
</table>