|
小弟刚学ASP,有一个关于显示的问题请大虾帮忙: 是一个产品展示的页面,产品展示时调用的是:<% call ShowArticle(32) %>, ShowArticle(TitleLen)部分代码如下: sub ArticleContent(intTitleLen) dim i,lb i=0 do while not rsArticle.eof lb="" lb=lb & "<table width=100% border=0 cellspacing=3 cellpadding=0>" lb=lb & "<tr>" lb=lb & "<td width=30% rowspan=6>" lb=lb & "<div align=center><a href=''ArticleShow.asp?ArticleID=" & rsArticle("articleid") & "''>" lb=lb & "<img border=0 src=''"& rsArticle("DefaultPicUrl") &"'' width=120 height=120>" lb=lb & "</a></div></td>" lb=lb & "<td width=12% height=12>产品名称:</td>" lb=lb & "<td><a href=''ArticleShow.asp?ArticleID="& rsArticle("articleid") &"''>"& rsArticle("Title") &"</a></td>" lb=lb & "</tr>"
lb=lb & "<tr>" lb=lb & "<td height=12>产品类别:</td>" lb=lb & "<td><a href=''ArticleShow.asp?BigClassName="& rsArticle("BigClassName") &"''>"& rsArticle("BigClassName") &"</a> → " lb=lb & "<a href=''ArticleShow.asp?BigClassName="& rsArticle("BigClassName") &"&SmallClassName="& rsArticle("SmallClassName") &"''>"& rsArticle("SmallClassName") &"" lb=lb & "</a></td>" lb=lb & "</tr>"
'' lb=lb & "<tr>" '' lb=lb & "<td height=18>产品编号:</td>" '' lb=lb & "<td>"& rsArticle("Product_Id") &"</td>" '' lb=lb & "</tr>"
lb=lb & "<tr>" lb=lb & "<td colspan=2>" lb=lb & "<table width=100% border=0 cellpadding=0 cellspacing=0>" lb=lb & "<tr>" lb=lb & "<td width=50% height=12>" lb=lb & "<div align=center></div></td>" lb=lb & "<td width=50% height=12>" lb=lb & "<div align=center><a href=''javascript:eshop("& rsArticle("Product_Id") &")''><img border=0 src=''../img/addtocart.gif'' width=95 height=17>" lb=lb & "</a></div></td>" lb=lb & "</tr>" lb=lb & "</table>" lb=lb & "</td>" lb=lb & "</tr>"
lb=lb & "<tr>" lb=lb & "<td height=1 colspan=3 background=''../img/kropki_poziom_naBialym.gif''><IMG height=1 src=''../img/1x1_pix.gif'' width=1></td>" lb=lb & "</tr>" lb=lb & "</table>" response.write lb rsArticle.movenext i=i+1 if i>=MaxPerPage then exit do loop end sub 代码是没问题,就是显示出来是每行一个产品,我想让他每行显示3或4个,请能实现么? 我该怎么修改呢! 也不知道说的明不明白,请高手帮助! |
|