我要把这段产品展示的代码分两列显示,请问怎么改

来源:百度知道 编辑:UC知道 时间:2024/09/24 00:38:34
<table width="100%" cellpadding="0" cellspacing="0" class="shop_list">
<%
sql="select * from shop where shopType="&typeId
rs.open sql,conn,1,1
do while not rs.eof
%>
<tr>
<td width="25%" align="center">
<a href="shop_show.asp?id=<%=rs("shopId")%>"><img src="picture/shop/pre/<%=rs("shopPic")%>" width="100" height="75" border="0" /></a></td>
<td width="75%">
<div class="shop_name"><%=rs("shopName")%></div>
<div>地址:<%=rs("shopAddress")%></div>
</td>
</tr>
<%
rs.movenext
loop
rs.close
conn.close
%>
</table>

<table width="100%" cellpadding="0" cellspacing="0" class="shop_list">
<tr>
<%
sql="select * from shop where shopType="&typeId
rs.open sql,conn,1,1
i=0
do while not rs.eof
%>
<td width="25%" align="center">
<a href="shop_show.asp?id=<%=rs("shopId")%>"><img src="picture/shop/pre/<%=rs("shopPic")%>" width="100" height="75" border="0" /></a></td>
<td width="75%">
<div class="shop_name"><%=rs("shopName")%></div>
<div>地址:<%=rs("shopAddress")%></div>
</td>
<%
i=i+1
rs.movenext
if i mod 2 = 0 then
response.Write("</tr><tr><td height='4' colspan='2'></td><