Do While Not rs.EOF循环以N行3列显示该怎么解决?
来源:百度知道 编辑:UC知道 时间:2024/05/06 13:02:43
我现在的代码是这样的:
<%
rs.pagesize=12
rs.AbsolutePage=page_no
dim I
I=12
do while not rs.eof and I>0
I=I-3
%>
<table width="100" height="68" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="75"><table width="100" border="0" cellpadding="0" cellspacing="5" class="bkys">
<tr>
<td><a href="cptpmore.asp?id=<%=rs("id")%>" target="_blank"><img src="admin/admin/<%=rs("tupian")%>" width="150" height="148" border="0"></a></td>
</tr>
<%
rs.pagesize=12
rs.AbsolutePage=page_no
dim I
I=12
do while not rs.eof and I>0
I=I-3
%>
<table width="100" height="68" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="75"><table width="100" border="0" cellpadding="0" cellspacing="5" class="bkys">
<tr>
<td><a href="cptpmore.asp?id=<%=rs("id")%>" target="_blank"><img src="admin/admin/<%=rs("tupian")%>" width="150" height="148" border="0"></a></td>
</tr>
很多办法。但最好的办法就是改用DIV+CSS。当然你不改也可以。TABLE+CSS一样可以做到。
你应该知道CSS里有个float:left吧。表格同样可以用这个。你把每个表格都固定了宽度,再在装表格的外部容器也定义一个*3的宽度,表格就会自动每行三列显示了。呵呵。
再申明下,改用DIV+CSS吧。你会发现,太好了!
do while not rs.eof
怎样将Do While Not rs.EOF循环7行
Do While Not rs.EOF循环以N行3列显示该怎么解决?
在VB中 do while not eof(1)..................loop.....是什么意思?
Do while not objRs.Eof and i<6
while()和do....while()???
ASP高手.帮忙在while not rs.eof 加个递加给我调用~
ASP高手.帮忙在while not rs.eof ..加个递加
用while do-while编程!
Do While Not mrc.EOF(有附加分的哦)