高手帮我改一段asp代码啊,把纵向显示改成横向的
<tablewidth="178"height="66"border="0"align="center"cellpadding="0"cellspacing="0"bgc...
<table width="178" height="66" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" id="table2" style="border-collapse: collapse">
<tr>
<td height="62" style="line-height: 150%"><table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
<tr>
<td></td>
</tr>
</table>
<%
sqls="select shopxpbe_id,shopxpbe_name from shopxp_btype order by shopxpbe_idorder asc"
set rss=conn.execute (sqls)
k=0
do while not rss.eof
bid=rss(0)
shopxpbe_name=rss(1)
%>
<table width="96%" height="26" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><span id="link<%=k%>" >· <a href="xpCatalog_xpDesc.asp?action_key_order=big&shopxpbe_id=<%=bid%>"><%=shopxpbe_name%></a></span></td>
<td width="9%"><img src="img_shopxp/hp.gif" width="6" height="8" /></td>
</tr>
<tr>
<td width="91%"><div align="center"><img src="img_shopxp/compart.gif" width="150" height="1" /></div></td>
</tr>
</table>
<%
rss.movenext
k=k+1
loop
rss.close
set rss=nothing
%></td>
</tr>
</table> 上面一点是读取数据库的一级分类的 读取出来后显示出来 但是他是纵向显示的 如何改成横向显示啊 展开
<tr>
<td height="62" style="line-height: 150%"><table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
<tr>
<td></td>
</tr>
</table>
<%
sqls="select shopxpbe_id,shopxpbe_name from shopxp_btype order by shopxpbe_idorder asc"
set rss=conn.execute (sqls)
k=0
do while not rss.eof
bid=rss(0)
shopxpbe_name=rss(1)
%>
<table width="96%" height="26" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><span id="link<%=k%>" >· <a href="xpCatalog_xpDesc.asp?action_key_order=big&shopxpbe_id=<%=bid%>"><%=shopxpbe_name%></a></span></td>
<td width="9%"><img src="img_shopxp/hp.gif" width="6" height="8" /></td>
</tr>
<tr>
<td width="91%"><div align="center"><img src="img_shopxp/compart.gif" width="150" height="1" /></div></td>
</tr>
</table>
<%
rss.movenext
k=k+1
loop
rss.close
set rss=nothing
%></td>
</tr>
</table> 上面一点是读取数据库的一级分类的 读取出来后显示出来 但是他是纵向显示的 如何改成横向显示啊 展开
1个回答
展开全部
<table width="178" height="66" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" id="table2" style="border-collapse: collapse">
<知蠢仿tr>
<%
sqls="select shopxpbe_id,shopxpbe_name from shopxp_btype order by shopxpbe_idorder asc"
set rss=conn.execute (sqls)
k=0
do while not rss.eof
bid=rss(0)
shopxpbe_name=rss(1)
%>
<td><span id="link<%=k%>" >· <a href="xpCatalog_xpDesc.asp?action_key_order=big&shopxpbe_id=<%=bid%>"><%=shopxpbe_name%><档销/a></span>
<img src="img_shopxp/hp.gif" width="6"搭纤 height="8" />
<div align="center"><img src="img_shopxp/compart.gif" width="150" height="1" /></div></td>
<%
rss.movenext
k=k+1
loop
rss.close
set rss=nothing
%>
</tr>
</table>
<知蠢仿tr>
<%
sqls="select shopxpbe_id,shopxpbe_name from shopxp_btype order by shopxpbe_idorder asc"
set rss=conn.execute (sqls)
k=0
do while not rss.eof
bid=rss(0)
shopxpbe_name=rss(1)
%>
<td><span id="link<%=k%>" >· <a href="xpCatalog_xpDesc.asp?action_key_order=big&shopxpbe_id=<%=bid%>"><%=shopxpbe_name%><档销/a></span>
<img src="img_shopxp/hp.gif" width="6"搭纤 height="8" />
<div align="center"><img src="img_shopxp/compart.gif" width="150" height="1" /></div></td>
<%
rss.movenext
k=k+1
loop
rss.close
set rss=nothing
%>
</tr>
</table>
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询