ASP产品类别 怎么把竖排改为横排???
<tablewidth="100%"border="0"cellpadding="0"cellspacing="0"background="images/tbj.jpg"...
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/tbj.jpg">
<%
set rsSmallClass=server.CreateObject("adodb.recordset")
rsSmallClass.open "Select * From product Where smallclassid=" & rsBigClass("id") & "",conn,1,3
if not(rsSmallClass.bof and rsSmallClass.eof) then
do while not rsSmallClass.eof
%>
<tr>
<td width="30" align="right"> <img src="images/tree2.gif" width="15" height="15"></td>
<td height="30"><a href="list.asp?id=<%=rsSmallClass("ID")%>"><%=rsSmallClass("title")%></a></td>
</tr>
<%
rsSmallClass.movenext
loop
end if
rsSmallClass.close
%>
</table>
横排一排排两个 展开
<%
set rsSmallClass=server.CreateObject("adodb.recordset")
rsSmallClass.open "Select * From product Where smallclassid=" & rsBigClass("id") & "",conn,1,3
if not(rsSmallClass.bof and rsSmallClass.eof) then
do while not rsSmallClass.eof
%>
<tr>
<td width="30" align="right"> <img src="images/tree2.gif" width="15" height="15"></td>
<td height="30"><a href="list.asp?id=<%=rsSmallClass("ID")%>"><%=rsSmallClass("title")%></a></td>
</tr>
<%
rsSmallClass.movenext
loop
end if
rsSmallClass.close
%>
</table>
横排一排排两个 展开
展开全部
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/tbj.jpg">
<%
set rsSmallClass=server.CreateObject("adodb.recordset")
rsSmallClass.open "Select * From product Where smallclassid=" & rsBigClass("id") & "",conn,1,3
if not(rsSmallClass.bof and rsSmallClass.eof) then
do while not rsSmallClass.eof
%>
<td width="30" align="right"> <img src="images/tree2.gif" width="15" height="15"></td>
<td height="30"><a href="list.asp?id=<%=rsSmallClass("ID")%>"><%=rsSmallClass("title")%></a></td>
<%
if i mod 2=0 then response.write"</tr><tr>" '2=0是一排排两个3=0就是排三个...
i=i+1
rsSmallClass.movenext
loop
end if
rsSmallClass.close
%>
</table>
<%
set rsSmallClass=server.CreateObject("adodb.recordset")
rsSmallClass.open "Select * From product Where smallclassid=" & rsBigClass("id") & "",conn,1,3
if not(rsSmallClass.bof and rsSmallClass.eof) then
do while not rsSmallClass.eof
%>
<td width="30" align="right"> <img src="images/tree2.gif" width="15" height="15"></td>
<td height="30"><a href="list.asp?id=<%=rsSmallClass("ID")%>"><%=rsSmallClass("title")%></a></td>
<%
if i mod 2=0 then response.write"</tr><tr>" '2=0是一排排两个3=0就是排三个...
i=i+1
rsSmallClass.movenext
loop
end if
rsSmallClass.close
%>
</table>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询