网站修改,怎么样用ASP语句让图片换行,谢谢!

来源:百度知道 编辑:UC知道 时间:2024/06/21 16:56:19
<table width="716" border="0" cellpadding="7" cellspacing="0" class="kuang">
<%
Sql = "select top 10 pic,Title,ID from product where shenhe='是' order by ID Desc"
SEt Rs = Server.CreateObject("Adodb.RecordSet")
Rs.Open Sql,conn,1,1
IF Not Rs.Eof Then
for i=0 to 0
%>
<tr>
<%
n=5
Do While Not Rs.Eof and n>0
n=n-1
%>
<td>
<table width="100" height="7" border="0" cellpadding="0" cellspacing="0">
<tr>
<td></td>
</tr>
</table>
<table border="0" align="center" cellpadding="4" cell

不大明白楼主什么意思,您试试这样:
<td bgcolor="#FFFFFF"><a href="cpzs/index.asp?ID=<%=Rs("ID")%>" target="_blank"><img src="user/<%=Rs("pic")%>" width="93" height="93" border="0"></a></td>
这一行,改成:
<td bgcolor="#FFFFFF"><a href="cpzs/index.asp?ID=<%=Rs("ID")%>" target="_blank"><br><img src="user/<%=Rs("pic")%>" width="93" height="93" border="0"></a></td>
行不?不行再改成这样:
<td bgcolor="#FFFFFF"><a href="cpzs/index.asp?ID=<%=Rs("ID")%>" target="_blank"><img src="user/<%=Rs("pic")%>" width="93" height="93" border="0" style="display:block"></a></td>
行不?

看看我的代码 试试!采用 SUB