表格图片不能换行?????
图片不能换行,知道的朋友帮我改一下,横起3张图片,竖起4张图片,先谢过了!!!!
<table border="0" cellspacing="0" cellpadding="0" align="center" width="540">
<tr>
<%
if request("Nclassid")="" then
sql="select pic,reviewcount,id,showname,note,dayhits,weekhits,lasthits,hits,dateandtime,hot,size,orders from download where "&classid&" stop=0 "
sql=sql&" order by "&order_name&" "&updown
else
sql="select pic,reviewcount,id,showname,note,dayhits,weekhits,lasthits,hits,dateandtime,hot,size,orders from download where "&classid&" "&Nclassid&" stop=0 "
sql=sql&" order by "&order_name&" "&updown
end if
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<p align='center'>没有或没有找到任何彩图</p>"
else
totalPut=rs.recordcount
if currentpage<1 then
currentpage=1
end if
if (currentpage-1)*MaxPerPage>totalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if
end if
if currentPage=1 then
showContent
showpage totalput,MaxPerPage,"index.asp"
else
if (currentPage-1)*MaxPerPage<totalPut then
rs.move (currentPage-1)*MaxPerPage
dim bookmark
bookmark=rs.bookmark
showContent
showpage totalput,MaxPerPage,"index.asp"
else
currentPage=1
showContent
showpage totalput,MaxPerPage,"index.asp"
end if
end if
rs.close
end if
sub showContent
dim i
i=0
%>
<%do while not rs.eof%>
<td width="100%" style="word-break:break-all"> <TABLE width=140 height=180 border=1 bordercolorlight=#5C7BAD bordercolordark=#FFFFFF cellPadding=0 cellSpacing=0>
<tr><td> <a target="_blank" href="list.asp?id=<%=rs("id")%>"><img src="<%=HostUrl%><%=rs("pic")%>" border="0" width="128" height="128" alt="图片名称:<%=rs("showname")%><br>推荐程度:<%if rs("hot") = 3 then response.write "★★★"%>
<%if rs("hot") = 4 then response.write "★★★★"%>
<%if rs("hot") = 5 then response.write "★★★★★"%><br>下载次数:<%=rs("hits")%><br>下载说明:<%if len(rs("note"))>55 then%>
<%=left(rs("note"),55)%>...
<%else%>
<%=rs("note")%>
<%end if%>" class="paixu"></a>
</td>
</tr><tr align="center">
<td height="30" colspan="3">精美图片</td>
</tr>
</table> </td>
<%
i=i+1
if i>=MaxPerPage then exit do
rs.movenext
loop
%>
</tr>
</table>