在ASP照片重复中如何实现布局重复,每横行3个这样的重复,请从我的代码基础上帮忙改一下,要具体的代码
发布网友
发布时间:2022-04-24 13:08
我来回答
共1个回答
热心网友
时间:2022-04-24 14:38
<table width="263" border="0" cellspacing="0" cellpadding="0">
<tr>
<%
i = 0
While ((Repeat1__numRows <> 0) AND (NOT admingetiao.EOF))
i=i+1
%>
<td width="263"><div align="center">
<table width="263" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100"><div align="center"><img src="<%=(admingetiao.Fields.Item("tupian").Value)%>" width="100" height="60"></div></td>
<td width="163"><div align="center">
<table width="163" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100" height="30"><div align="center"><%=(admingetiao.Fields.Item("商品名称").Value)%></div></td>
<td width="63"><div align="center">
<label for="label9"></label>
<input name="Submit2" type="submit" id="label9" onClick="MM_goToURL('parent','getiaoxiugai.asp?id=<%=(admingetiao.Fields.Item("id").Value)%>');return document.MM_returnValue" value="修改">
</div></td>
</tr>
<tr>
<td height="30"><div align="center"><%=(admingetiao.Fields.Item("商品编号").Value)%></div></td>
<td><div align="center">
<form name="form2" method="POST" action="<%=MM_editAction%>">
<label for="label10"></label>
<input type="submit" name="Submit3" value="删除" id="label10">
<input type="hidden" name="MM_delete" value="form2">
<input type="hidden" name="MM_recordId" value="<%= admingetiao.Fields.Item("id").Value %>">
</form>
</div></td>
</tr>
</table>
</div></td>
</tr>
</table>
</div></td>
<%
if (i mod 3 = 0) then
%>
</tr><tr>
<%
end if
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
admingetiao.MoveNext()
Wend
%>
</tr>
</table>