黑暗之魂2 蓝炎 无限:ASP循环问题求助!

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/29 08:59:52
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<%

j=1

for f=0 to 7
%>

<%if j=1 then%>
<tr>
<td width="25%" align="center">
<%end if%>
图片
<%if j=1 then%></td>
<td width="25%">
<%j=2%>

<%else%></td>
</tr>
<%j=1%>
<%end if%>

<%next%>
</table>

现在是第行二列显示四行,我要实现每行四列分二行显示。

<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<%
for f=0 to 7
if f mod 4=0 then response.write "</tr><tr>"
%>
<td width="25%" align="center"> 图片 </td>
<%
next
%>
</tr>
</table>