数据库中的图片一排一排的显示
叫我梁大侠 2010-08-18 12:04:30 我这好急额
我这弄个图片展示的
我输出显示的时候发现 弄不来一排一排的显示
我写的是
<%
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from product_info",conn,1,3
do while not rs.eof
%>
<table border='0' cellpadding='0' cellspacing='0' ><tr><td style='text-decoration: underline; border: 1px solid #CCCCCC;' align='center' width='180' height='200'><a href='ProductsView.asp?id=<%=Rs("id")%>' target='_blank'><img src=<%=rs("p_img")%> border=0 ></a></td>
</tr><tr><td height='36' align='center'> <a href='ProductsView.asp?id=<%=Rs("id")%>' target='_blank'><font color="#FFFFFF"><%=rs("p_title")%></font></a></td></tr>
</table>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
输出结果却是一条竖的图片
我想要的效果是 每行显示3张图片
然后显示两排
高人指点下,跪谢!