当发布新商店超过两个就挤在一起了,我想要一个横向就只显示一个商店,这个ASP是连接数据库的,在后台新发布商店时就会这样,我该怎么做?这块ASP源码如下:
<table width="100%" height="139" border="0" cellpadding="0" cellspacing="1">
<tr>
<td> </td>
</tr>
<%row_count=1 %>
<tr align="center">
<% Do While Not rs_Product.EOF%>
<td>
<table width="100%" height="105" border="0" cellpadding="0" cellspacing="2">
<tr>
<td width="38%" rowspan="3"><div align="center"><a href="ArticleShow.asp?ArticleID=<%=rs_Product("articleid")%>"><img src=<%=rs_Product("DefaultPicUrl")%> border=0></a></div></td>
<td width="24%">商店名称:</td>
<td width="38%"><a href="ArticleShow.asp?ArticleID=<%=rs_Product("articleid")%>"><%=rs_Product("Title")%></a></td>
</tr>
<tr>
<td>商店位置:</td>
<td><%=rs_Product("Spec")%></td>
</tr>
<tr>
<td>商店信息:</td>
<td><a href=ArticleShow.asp?ArticleID=<%=rs_Product("articleid")%>><img src=Img/arrow_7.gif border=0></a></td>
</tr>
</table><br>
</td>
<%if row_count mod 2 <>0 then%>
<%end if%>
<% if row_count mod 2 =0 then%>
</tr>
<tr>
<%end if%>
<%
rs_Product.MoveNext
row_count=row_count+1
Loop
rs_Product.close
%>
</tr>
<tr>
<td> </td>
</tr>
</table>