读取数据库记录时,如何多列显示???
比如4列显示.
循环表格的方法 <% response.write "第一种用for循环" response.Write "<table border=1>" m=0 for i=1 to 4 response.Write "<tr>" for j=1 to 5 m=m+1 response.Write "<td>"&m&"</td>" next next response.write "</table>" response.write "第二种用do while" response.Write "<table border=1>" response.Write "<tr>" i=0 do while i<20 i=i+1 response.Write "<td>"&i&"</td>" if i mod 5=0 then response.Write "</tr><tr>" end if loop response.write "</table>" response.write "第三种用do while" response.Write "<table border=1>" response.Write "<tr>" i=0 while i<20 i=i+1 response.Write "<td>"&i&"</td>" if i mod 5=0 then response.Write "</tr><tr>" end if wend response.write "</table>" %> |