| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 356 人关注过本帖
标题:捆饶了好多天的问题
只看楼主 加入收藏
xinzhilei
Rank: 1
等 级:新手上路
帖 子:49
专家分:5
注 册:2007-3-27
结帖率:0
收藏
 问题点数:0 回复次数:3 
捆饶了好多天的问题
<table width="80%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td bgcolor="#6386BD" height="40" align="center"><font color="#FFFFFF">
<%
if id = 0 then
response.Write "产 品 信 息 添 加"
else
response.Write "产 品 信 息 修 改"
end if
%>
</font> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="3"></td>
</tr>
<tr>
<td height="22" background="images/bg_title01.gif"></td>
</tr>
</table>
<table width="67%" border="1" align="center">
<tr>
<td height="140"><table width="162" border="1" cellpadding="1" cellspacing="1">
<tr>
<%for i=1 to rs.recordcount%>
<td width="162">
<table width="192" border="1">
<tr>
<td width="182" height="121"><%=rs("minipic")%></td>
</tr>
<tr>
<td height="35"><%=rs("huohao")%></td>
</tr>
</table>
<%
if(i mod 2=0) then
response.write "<br>"

end if
rs.movenext
next
rs.close
%>
</td>
</tr>
</table></td>
</tr>
</table>


我已经让所有的图片显示在一行了

我想让2张图片显示后,第2排再显示2张图片显示在一行了.为什么我这样做就是不能换行?
搜索更多相关主题的帖子: background images border center color 
2007-08-09 17:41
xinzhilei
Rank: 1
等 级:新手上路
帖 子:49
专家分:5
注 册:2007-3-27
收藏
得分:0 
先说声谢谢~

2007-08-09 17:42
madpbpl
Rank: 4
等 级:贵宾
威 望:11
帖 子:2876
专家分:244
注 册:2007-4-5
收藏
得分:0 

<%
if(i mod 2=0) then
response.write "<br>"

end if
rs.movenext
next
rs.close
%>
</td>
改成
</td> '</td>放到循环里
<%
if(i mod 2=0) then
response.write "</tr><tr>"

end if
rs.movenext
next
rs.close
%>

2007-08-09 19:33
leaftest
Rank: 1
等 级:新手上路
帖 子:47
专家分:0
注 册:2007-8-9
收藏
得分:0 
对, 放在循环判断里, 比如你一排要在8个单元格里显示8张图片,那么下一行就要填充6个空的单元格

help you , help me - -%
2007-08-10 09:10
快速回复:捆饶了好多天的问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.010992 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved