500分请教ASP中产品排列问题,现在竖排,想改为横排,一排三个,三排。
<tablewidth="98%"border="0"cellspacing="0"cellpadding="0"align="center"><tr><tdvalign...
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td valign="top" >
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<%
for j=1 to 3
if rs.eof then exit for
%>
<tr>
<%
for k=1 to 2
if rs.eof then exit for
%>
<td width="25%" ><table width="375" height="294" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="294" align="center" valign="middle" background="../images/pro_big_bg.jpg"><img src="<%=rs("P_Bigpic")%>" border="0" alt="<%=rs("p_name")%>" style="border:#EFEFF0 1px solid;" /></td>
<td align="center" valign="middle" background="../images/pro_big_bg.jpg"> </td>
</tr>
<tr>
<td height="25" align="center" valign="middle" bgcolor="F7F7F7"><table width="94%" border="0" cellpadding="0" cellspacing="0" class="about_s2">
<tr>
<td width="17%" height="20" nowrap="nowrap" style="padding-left:5px;">产品名称:</td>
<td width="33%" height="20" align="left" onmouseover="this.style.backgroundColor='#FFFFFF';" onmouseout="this.style.backgroundColor='#F7F7F7';"><%=rs("p_name")%></td>
<td width="13%" height="20" align="center" nowrap="nowrap"> </td>
<td width="37%" height="20" align="center" ></td>
</tr>
</table></td>
<td align="center" valign="middle" bgcolor="F7F7F7"> </td>
</tr>
</table></td>
<%
rs.movenext
next
%>
</tr>
<tr>
<td height="3">
</td>
</tr>
<%
next
%>
</table> </td>
</tr>
<tr>
<td align="right" valign="middle"><%call showpage(2,Total_Records,Page_Size,Total_Page,Request_Str,ipage)%></td>
</tr>
</table> 展开
<tr>
<td valign="top" >
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<%
for j=1 to 3
if rs.eof then exit for
%>
<tr>
<%
for k=1 to 2
if rs.eof then exit for
%>
<td width="25%" ><table width="375" height="294" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="294" align="center" valign="middle" background="../images/pro_big_bg.jpg"><img src="<%=rs("P_Bigpic")%>" border="0" alt="<%=rs("p_name")%>" style="border:#EFEFF0 1px solid;" /></td>
<td align="center" valign="middle" background="../images/pro_big_bg.jpg"> </td>
</tr>
<tr>
<td height="25" align="center" valign="middle" bgcolor="F7F7F7"><table width="94%" border="0" cellpadding="0" cellspacing="0" class="about_s2">
<tr>
<td width="17%" height="20" nowrap="nowrap" style="padding-left:5px;">产品名称:</td>
<td width="33%" height="20" align="left" onmouseover="this.style.backgroundColor='#FFFFFF';" onmouseout="this.style.backgroundColor='#F7F7F7';"><%=rs("p_name")%></td>
<td width="13%" height="20" align="center" nowrap="nowrap"> </td>
<td width="37%" height="20" align="center" ></td>
</tr>
</table></td>
<td align="center" valign="middle" bgcolor="F7F7F7"> </td>
</tr>
</table></td>
<%
rs.movenext
next
%>
</tr>
<tr>
<td height="3">
</td>
</tr>
<%
next
%>
</table> </td>
</tr>
<tr>
<td align="right" valign="middle"><%call showpage(2,Total_Records,Page_Size,Total_Page,Request_Str,ipage)%></td>
</tr>
</table> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询