分列输出图片问题,折磨了好久?帮帮忙

jiangxiaochao 2003-08-20 01:54:44
比如分两列输出,蝴蝶类的图片共有5张,晴蜒类有7张。那么蝴蝶类图片输出时将有三行。我的意思是蝴蝶类输完后,如何不让晴蜒类紧接着在三行2列处输出。而是别起行也就是从第四行1列开始输出?
...全文
56 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
jinggan 2003-08-20
  • 打赏
  • 举报
回复
太长了!没空啊
jiangxiaochao 2003-08-20
  • 打赏
  • 举报
回复
up
jiangxiaochao 2003-08-20
  • 打赏
  • 举报
回复
代码如下,请修改:

<!--#include file="conn.asp"-->
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../style/style.css">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<%id=request("id")
a=split(id,",")
if id="" then
%>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30" align="center">没有任何选中的记录!</td>
</tr>
<tr>
<td height="30" align="center"><a href="javascript:history.back(-1)">返回</a></td>
</tr>
</table>
<%else%>
<table width="600" border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="#CCCC99">
<tr>
<td align="center" height="64">
<table border="0" cellspacing="0" cellpadding="0" >
<tr>
<% row_count=1
for i=0 to request("id").count-1
set rs=server.createobject("adodb.recordset")
sql="select * from collection where id="&a(i)&""
rs.open sql,conn,1,1

class_2=rs("class_2")
age=rs("age")
set rs_1=server.createobject("adodb.recordset")
sql_1="select * from collect_pic where class_2='"&class_2&"' and age='"&age&"'"
rs_1.open sql_1,conn,1,1
response.write rs_1("class_2")

do while not rs_1.eof
%>
<td width="250" align="center"><br><%=rs_1("class_2")%><%=rs_1("age")%>的藏品<img src="<%=rs_1("collect_pic")%>" border="1"><br>
<br>
</td>
<td width="10"></td>
<%if row_count mod 2=0 then%>
</tr>
<tr>
<%end if %>
<%rs_1.movenext
row_count=row_count+1
loop
next
end if
%>
</tr>
</table>
</td>
</tr>
<tr>
</tr>
</table>
</body>
</html>

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧