怎么变成一行显示三张图片后自动换行

来源:百度知道 编辑:UC知道 时间:2024/07/03 04:11:51
代码:<td align="center" ><table width="30%" border="0" align="center" cellpadding="0" cellspacing="1">
<%set rs=server.createobject("adodb.recordset")
rs.open "select * from products order by ok=true,orderid desc,infotime desc",conn,1,1
do while not rs.eof%>
<tr>
<td align="center"><a href="../pro/products.asp?classid=302"><img src="../<%=rs("spic")%>" width="48" height="43" border="0"></a></td>
</tr>
<%rs.movenext
loop
rs.close
set rs=nothing%>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" ></td>
</tr>
</table></td>
</tr>
</table>
高手帮帮

<td align="center" ><table width="30%" border="0" align="center" cellpadding="0" cellspacing="1">
<%set rs=server.createobject("adodb.recordset")
rs.open "select * from products order by ok=true,orderid desc,infotime desc",conn,1,1
do while not rs.eof%>
<tr>
<% for i=0 to 2 %>
<td align="center"><a href="../pro/products.asp?classid=302"><img src="../<%=rs("spic")%>" width="48" height="43" border="0"></a></td>
<%rs.movenext
next %>
</tr>

<% loop
rs.close
set rs=nothing%>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" ></td>
</tr>
</table><