铸铝板:http://www.hengdalipin.com/Other/Index.asp,这个网页中产品从数据库读出来是怎么做到分行排列的?

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/28 16:17:04
http://www.hengdalipin.com/Other/Index.asp,这个网页中产品从数据库读出来是怎么做到分行排列的?我只会列表,不会分行排啊!谢谢了

...
<%
for i = 1 to 4'一行显示四个
%>
<tr>
<%
next
%>
...

你可以

i=0
do while not rs.eof
i=i+1
response.write"数据"
if i=4 then
response.write"<br>"
end if
rs.movenext
loop
rs.close