无为清净楼资源网 Design By www.qnjia.com
 <table width="100%" border="0" cellpadding="0" cellspacing="0">    
<% do while not rs.eof %>
    <tr>
       <td height="80"><img src="/UploadFiles/2021-04-02/<%= rs(">    </tr>
<% i=i+1
if i>=MaxPerPage then exit do
rs.movenext
loop
%>
</table>
记录排列如下:
1
2
3
4
5
如果我想把记录排列改成
1  2  3
4  5
那么以上代码该怎么改,请高手帮忙一下
复制代码 代码如下:
<table width="100%" border="0" cellpadding="0" cellspacing="0">    
<%   i=0   
  do while not rs.eof 
  if i mod 3 =0 then %>
  <tr>   
  <% end if %>
     <td height="80"><img src="/UploadFiles/2021-04-02/<%= rs(">  <% 
  if (i+1) mod 3=0 then
  %>
  </tr>
  <%end if%>   
  <%   
  i=i+1
  if i>=MaxPerPage then exit do 
  rs.movenext   
  loop  
  %>  
</table>
标签:
数据库,记录,横向排列

无为清净楼资源网 Design By www.qnjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
无为清净楼资源网 Design By www.qnjia.com

更新日志

2024年09月20日