如何将下面的asp产品展示代码由竖排显示变成横排显示
<tablewidth="100%"height="100%"border="0"cellpadding="0"cellspacing="0"><tr><tdheight...
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="143" valign="top">
<%
sql="select * from shopxp_product where shopxpbe_id = (select shopxpbe_id from shopxp_product where shopxpptid = "&request("id")&") order by shopxpptid desc "
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%>
<%do while not rs.eof
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="98%" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="76" height="60">
<TABLE width=65 height=65 border=0 align="center" cellPadding=2 cellSpacing=1 bgColor=#e1e1e1 >
<TBODY>
<TR>
<TD width=65 height=65 bgColor=#ffffff align=center ><%if rs("upfilepic")="" then
response.write "<div align=center><a href=productshopxp.asp?id="&rs("shopxpptid")&" ><img src=img_shopxp/emptybook.gif width=65 height=65 border=0></a></div>"
else%>
<a href=productshopxp.asp?id=<%=rs("shopxpptid")%> ><img src="<%=trim(rs("upfilepic"))%>" width=60 border=0 alt="<%=rs("shopxpptname")%>" height=60></a>
<%end if%>
</td>
</tr>
</tbody>
</table></td>
<td width="111">名称:<font color="#ff0000"><%=trim(rs("shopxpptname"))%></font><br>
会员价:<font color="#ff0000"><%=trim(rs("shopxphyjia"))%></font></td>
</tr>
</table></td>
</tr>
<tr>
<td height="10"></td>
</tr>
</table>
<%
rs.movenext
loop
rs.close
end if
%></td>
</tr>
</table> 展开
<tr>
<td height="143" valign="top">
<%
sql="select * from shopxp_product where shopxpbe_id = (select shopxpbe_id from shopxp_product where shopxpptid = "&request("id")&") order by shopxpptid desc "
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%>
<%do while not rs.eof
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="98%" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="76" height="60">
<TABLE width=65 height=65 border=0 align="center" cellPadding=2 cellSpacing=1 bgColor=#e1e1e1 >
<TBODY>
<TR>
<TD width=65 height=65 bgColor=#ffffff align=center ><%if rs("upfilepic")="" then
response.write "<div align=center><a href=productshopxp.asp?id="&rs("shopxpptid")&" ><img src=img_shopxp/emptybook.gif width=65 height=65 border=0></a></div>"
else%>
<a href=productshopxp.asp?id=<%=rs("shopxpptid")%> ><img src="<%=trim(rs("upfilepic"))%>" width=60 border=0 alt="<%=rs("shopxpptname")%>" height=60></a>
<%end if%>
</td>
</tr>
</tbody>
</table></td>
<td width="111">名称:<font color="#ff0000"><%=trim(rs("shopxpptname"))%></font><br>
会员价:<font color="#ff0000"><%=trim(rs("shopxphyjia"))%></font></td>
</tr>
</table></td>
</tr>
<tr>
<td height="10"></td>
</tr>
</table>
<%
rs.movenext
loop
rs.close
end if
%></td>
</tr>
</table> 展开
3个回答
展开全部
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr><%
sql="select * from shopxp_product where shopxpbe_id = (select shopxpbe_id from shopxp_product where shopxpptid = "&request("id")&") order by shopxpptid desc "
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%>
<%do while not rs.eof
%>
<td height="143" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="98%" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="76" height="60">
<TABLE width=65 height=65 border=0 align="center" cellPadding=2 cellSpacing=1 bgColor=#e1e1e1 >
<TBODY>
<TR>
<TD width=65 height=65 bgColor=#ffffff align=center ><%if rs("upfilepic")="" then
response.write "<div align=center><a href=productshopxp.asp?id="&rs("shopxpptid")&" ><img src=img_shopxp/emptybook.gif width=65 height=65 border=0></a></div>"
else%>
<a href=productshopxp.asp?id=<%=rs("shopxpptid")%> ><img src="<%=trim(rs("upfilepic"))%>" width=60 border=0 alt="<%=rs("shopxpptname")%>" height=60></a>
<%end if%>
</td>
</tr>
</tbody>
</table></td>
<td width="111">名称:<font color="#ff0000"><%=trim(rs("shopxpptname"))%></font><br>
会员价:<font color="#ff0000"><%=trim(rs("shopxphyjia"))%></font></td>
</tr>
</table></td>
</tr>
<tr>
<td height="10"></td>
</tr>
</table>
</td><%
rs.movenext
loop
rs.close
end if
%>
</tr>
</table>
改成对td循环就行了
<tr><%
sql="select * from shopxp_product where shopxpbe_id = (select shopxpbe_id from shopxp_product where shopxpptid = "&request("id")&") order by shopxpptid desc "
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%>
<%do while not rs.eof
%>
<td height="143" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="98%" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="76" height="60">
<TABLE width=65 height=65 border=0 align="center" cellPadding=2 cellSpacing=1 bgColor=#e1e1e1 >
<TBODY>
<TR>
<TD width=65 height=65 bgColor=#ffffff align=center ><%if rs("upfilepic")="" then
response.write "<div align=center><a href=productshopxp.asp?id="&rs("shopxpptid")&" ><img src=img_shopxp/emptybook.gif width=65 height=65 border=0></a></div>"
else%>
<a href=productshopxp.asp?id=<%=rs("shopxpptid")%> ><img src="<%=trim(rs("upfilepic"))%>" width=60 border=0 alt="<%=rs("shopxpptname")%>" height=60></a>
<%end if%>
</td>
</tr>
</tbody>
</table></td>
<td width="111">名称:<font color="#ff0000"><%=trim(rs("shopxpptname"))%></font><br>
会员价:<font color="#ff0000"><%=trim(rs("shopxphyjia"))%></font></td>
</tr>
</table></td>
</tr>
<tr>
<td height="10"></td>
</tr>
</table>
</td><%
rs.movenext
loop
rs.close
end if
%>
</tr>
</table>
改成对td循环就行了
博思aippt
2024-07-20 广告
2024-07-20 广告
作为深圳市博思云创科技有限公司的工作人员,对于Word文档生成PPT的操作,我们有以下建议:1. 使用另存为功能:在Word中编辑完文档后,点击文件->另存为,选择PowerPoint演示文稿(*.pptx)格式,即可将文档内容转换为PPT...
点击进入详情页
本回答由博思aippt提供
展开全部
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<%
sql="select * from shopxp_product where shopxpbe_id = (select shopxpbe_id from shopxp_product where shopxpptid = "&request("id")&") order by shopxpptid desc "
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%>
<%do while not rs.eof
%><td height="143" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="98%" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="76" height="60">
<TABLE width=65 height=65 border=0 align="center" cellPadding=2 cellSpacing=1 bgColor=#e1e1e1 >
<TBODY>
<TR>
<TD width=65 height=65 bgColor=#ffffff align=center ><%if rs("upfilepic")="" then
response.write "<div align=center><a href=productshopxp.asp?id="&rs("shopxpptid")&" ><img src=img_shopxp/emptybook.gif width=65 height=65 border=0></a></div>"
else%>
<a href=productshopxp.asp?id=<%=rs("shopxpptid")%> ><img src="<%=trim(rs("upfilepic"))%>" width=60 border=0 alt="<%=rs("shopxpptname")%>" height=60></a>
<%end if%>
</td>
</tr>
</tbody>
</table></td>
<td width="111">名称:<font color="#ff0000"><%=trim(rs("shopxpptname"))%></font><br>
会员价:<font color="#ff0000"><%=trim(rs("shopxphyjia"))%></font></td>
</tr>
</table></td>
</tr>
<tr>
<td height="10"></td>
</tr>
</table>
</td>
<%
rs.movenext
loop
rs.close
end if
%>
</tr>
</table>
试试这个 不过要调节一下大小
<tr>
<%
sql="select * from shopxp_product where shopxpbe_id = (select shopxpbe_id from shopxp_product where shopxpptid = "&request("id")&") order by shopxpptid desc "
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%>
<%do while not rs.eof
%><td height="143" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="98%" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="76" height="60">
<TABLE width=65 height=65 border=0 align="center" cellPadding=2 cellSpacing=1 bgColor=#e1e1e1 >
<TBODY>
<TR>
<TD width=65 height=65 bgColor=#ffffff align=center ><%if rs("upfilepic")="" then
response.write "<div align=center><a href=productshopxp.asp?id="&rs("shopxpptid")&" ><img src=img_shopxp/emptybook.gif width=65 height=65 border=0></a></div>"
else%>
<a href=productshopxp.asp?id=<%=rs("shopxpptid")%> ><img src="<%=trim(rs("upfilepic"))%>" width=60 border=0 alt="<%=rs("shopxpptname")%>" height=60></a>
<%end if%>
</td>
</tr>
</tbody>
</table></td>
<td width="111">名称:<font color="#ff0000"><%=trim(rs("shopxpptname"))%></font><br>
会员价:<font color="#ff0000"><%=trim(rs("shopxphyjia"))%></font></td>
</tr>
</table></td>
</tr>
<tr>
<td height="10"></td>
</tr>
</table>
</td>
<%
rs.movenext
loop
rs.close
end if
%>
</tr>
</table>
试试这个 不过要调节一下大小
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询