asp如何图片让起横向显示,高手帮忙

jmxye 2008-04-20 07:27:38
asp如何图片让起横向显示,高手帮忙
<!----图片调用开始------>
<%
intPageSize=5
strPageUrl="?Uid="&request("Uid")&""
SQLSelect="select I_ID,C_Position,C_Name,C_Img,DT_AddDate,L_Check from TB_ZSDesigner"
SQLWhere=" where I_MemberID="&Uid&""
SQLOrder=" order by I_ID desc"


SQLTable=trim(mid(SQLSelect,(instr(SQLSelect,"from")+4)))
SQL1="select count(*) from TB_ZSDesigner"&SQLWhere
intRecordCount=conn.execute(SQL1)(0)
call PageCute(intRecordCount,intPageSize)
SQL=SQLSelect&SQLWhere&SQLOrder
set rs=conn.execute(SQL)
if not rs.eof then
rs.move (CurrentPage-1)*intPageSize
for i=1 to intPageSize
%>
<TABLE height=120 cellSpacing=0 cellPadding=0 width=130 border=0>
<TR>
<TD><IMG height=2 src="imagg/img/cc01.jpg" width=3></TD>
<TD background=imagg/img/cc02.jpg height=2></TD>
<TD><IMG height=2 src="imagg/img/cc03.jpg" width=7></TD>
</TR>
<TR>
<TD width=1 background=imagg/img/cc04.jpg></TD>
<TD width="100%" height="115" align="center" valign="bottom" class="htext">
<a target="_blank" href="Item.asp?Uid=<%= Uid %>">
<img src="imagg/1/logop200712191102136607.jpg" width="110" height="90" border="0" alt="样板房"><br><%= rs("C_Position") %>-<%= rs("C_Name") %></a> </TD>
<TD width=7 background=imagg/img/cc05.jpg></TD>
</TR>
<TR>
<TD><IMG height=8 src="imagg/img/cc06.jpg" width=3></TD>
<TD background=imagg/img/cc07.jpg height=8></TD>
<TD><IMG height=8 src="imagg/img/cc08.jpg" width=7></TD>
</TR>
</TABLE>
<%
rs.movenext
if rs.eof then exit for
next
else
response.write " <td colspan=2 align=center> <font color='#FF0000'>暂无记录 </font> </td>"
end if
%>
<!----图片调用结束------>
...全文
48 点赞 收藏 4
写回复
4 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
<table>
<tr>

<%
intPageSize=5
.....
rs.move (CurrentPage-1)*intPageSize
for i=1 to intPageSize
%>
<td>
<TABLE height=120 cellSpacing=0 cellPadding=0 width=130 border=0>
<TR>
<TD> <IMG height=2 src="imagg/img/cc01.jpg" width=3> </TD>
<TD background=imagg/img/cc02.jpg height=2> </TD>
<TD> <IMG height=2 src="imagg/img/cc03.jpg" width=7> </TD>
</TR>
<TR>
........
</TABLE> </td>
<%
rs.movenext
if rs.eof then exit for
next
else
response.write " <td colspan=2 align=center> <font color='#FF0000'>暂无记录 </font> </td>"
end if
%>
</tr></table>
简单的问题,看红色部分,之前才有人问
回复
xiaoyi1234 2008-04-20
楼上的 已经可以解决问题了
JF
回复
myvicy 2008-04-20
参考这个:http://topic.csdn.net/u/20080416/20/d9916f0c-d0b0-4b20-89ee-1de27c03d155.html?seed=1380410656
可以控制每行显示多少列每列显示多少图片等。
回复
jmxye 2008-04-20
现在向下显示
回复
相关推荐
发帖
ASP
创建于2007-09-28

2.8w+

社区成员

ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
申请成为版主
帖子事件
创建了帖子
2008-04-20 07:27
社区公告
暂无公告