經常在論壇上看到有人問“將數據庫中的記錄輸出來,每行5個”這種輸出的方法 這里有一個簡單的代碼,改一下就成了自己想要的代碼了 <table border=1 width="200"> <% col=5 '表示列數 i=1 Do While i<=100 If i Mod col=1 Then response.write "<tr>" End If response.write "<td align=center>"&i&"</td>" If i Mod col=0 Then response.write "</tr>" End If i=i+1 loop %> </table>