<tablewidth="100%"border="0"cellpadding="0"cellspacing="0">
<%dowhilenotrs.eof%>
<tr>
<tdheight="80"><imgsrc="<%=rs("图片")%>"width="160"height="80"></td>
</tr>
<%i=i+1
ifi>=MaxPerPagethenexitdo
rs.movenext
loop
%>
</table>
记录排列如下:
1
2
3
4
5
如果我想把记录排列改成
123
45
那么以上代码该怎么改,请高手帮忙一下
复制代码代码如下:
<tablewidth="100%"border="0"cellpadding="0"cellspacing="0">
<%i=0
dowhilenotrs.eof
ifimod3=0then%>
<tr>
<%endif%>
<tdheight="80"><imgsrc="<%=rs("图片")%>"width="160"height="80"></td>
<%
if(i+1)mod3=0then
%>
</tr>
<%endif%>
<%
i=i+1
ifi>=MaxPerPagethenexitdo
rs.movenext
loop
%>
</table>