当前位置:K88软件开发文章中心编程语言AspAsp01 → 文章内容

ASP循环中表格定位的左右两列显示方法

减小字体 增大字体 作者:佚名  来源:翔宇亭IT乐园  发布时间:2019-1-3 0:44:20

:2010-03-14 21:29:00

<% Set = rs ……………………
'循环前提省略
Response.Write("<table width=""100%"" border=""1"" align=""center"" cellpadding=""4"" cellspacing=""4"">")
Response.Write("<tr><td valign=""top"" width=""50%"">")
i=1
Do While not rs.eof
Response.Write("输出内容")
if i mod 2 = 0 then
Response.Write("</td></tr><tr><td>")
else
Response.Write"</td><td>"
end if
rs.MoveNext
i = i + 1
Loop
Response.write"</td></tr>"
Response.Write("</table>")
%>

本文来源于:翔宇亭IT乐园  转载时请保留此信息!
 


ASP循环中表格定位的左右两列显示方法