(高手)asp数据如何分两列显示

2025-01-19 17:22:13
推荐回答(3个)
回答1:

已经是两列了呀,一列显示cutstr(rs_news("title"),22);一列显示rs_news("adddate");
如果你是想4列显示的话;
<%i=0
do while not rs_news.eof%>

" target="_blank"><%=cutstr(rs_news("title"),22)%>
<%=rs_news("adddate")%>
<% if i mod 2 <> 0 then response.write(" ")

rs_news.movenext
i=i+1

回答2:

<%
set rs_news=server.createobject("adodb.recordset")
sqltext4="select top 8 * from news where BigClassName='公司新闻' order by id desc"
rs_news.open sqltext4,conn,1,1
%>

width=461 border=0>

<%do while not rs_news.eof%>

<%
i = 0
Do WHILE i <> 2 AND not rs_news.eof%>




<%rs_news.movenext
i = i + 1
loop
%>

<%loop
rs_news.close
%>

回答3:

这是全部代码吗?十有八九是html标签嵌套错误,你仔细注意一下那个tbody和那些tr

" target="_blank"><%=cutstr(rs_news("title"),22)%> <%=rs_news("adddate")%>