用dw做的asp重复区域不能自动换行
我用dw学做网站,可一行数据在表格中显示完后,下一条记录会接着上条记录显示,不换行显示这是怎么回事啊。tablewidth="685"border="0"cellpadd...
我用dw学做网站,可一行数据在表格中显示完后,下一条记录会接着上条记录显示,不换行显示这是怎么回事啊。
table width="685" border="0" cellpadding="6" cellspacing="0" id="1">
<tr>
<td width="50%" align="center"><strong>新闻标题</strong></td>
<td width="21%" align="center"><strong>点击数</strong></td>
<td width="18%" align="center"><strong>修改</strong></td>
<td width="11%" align="center"><strong>删除</strong></td>
</tr>
<tr>
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<td align="center"><%=(Recordset1.Fields.Item("bt").Value)%></td>
<td align="center"><%=(Recordset1.Fields.Item("djs").Value)%></td>
<td align="center">修改</td>
<td align="center">删除</td>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
</tr>
</table>
<p> </p>
<table border="0">
<tr>
<td><% If MM_offset <> 0 Then %>
<a href="<%=MM_moveFirst%>">第一页</a>
<% End If ' end MM_offset <> 0 %></td>
<td><% If MM_offset <> 0 Then %>
<a href="<%=MM_movePrev%>">前一页</a>
<% End If ' end MM_offset <> 0 %></td>
<td><% If Not MM_atTotal Then %>
<a href="<%=MM_moveNext%>">下一个</a>
<% End If ' end Not MM_atTotal %></td>
<td><% If Not MM_atTotal Then %>
<a href="<%=MM_moveLast%>">最后一页</a>
<% End If ' end Not MM_atTotal %></td>
</tr>
</table>
初学asp请大家多帮忙谢谢了,QQ283704122 展开
table width="685" border="0" cellpadding="6" cellspacing="0" id="1">
<tr>
<td width="50%" align="center"><strong>新闻标题</strong></td>
<td width="21%" align="center"><strong>点击数</strong></td>
<td width="18%" align="center"><strong>修改</strong></td>
<td width="11%" align="center"><strong>删除</strong></td>
</tr>
<tr>
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<td align="center"><%=(Recordset1.Fields.Item("bt").Value)%></td>
<td align="center"><%=(Recordset1.Fields.Item("djs").Value)%></td>
<td align="center">修改</td>
<td align="center">删除</td>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
</tr>
</table>
<p> </p>
<table border="0">
<tr>
<td><% If MM_offset <> 0 Then %>
<a href="<%=MM_moveFirst%>">第一页</a>
<% End If ' end MM_offset <> 0 %></td>
<td><% If MM_offset <> 0 Then %>
<a href="<%=MM_movePrev%>">前一页</a>
<% End If ' end MM_offset <> 0 %></td>
<td><% If Not MM_atTotal Then %>
<a href="<%=MM_moveNext%>">下一个</a>
<% End If ' end Not MM_atTotal %></td>
<td><% If Not MM_atTotal Then %>
<a href="<%=MM_moveLast%>">最后一页</a>
<% End If ' end Not MM_atTotal %></td>
</tr>
</table>
初学asp请大家多帮忙谢谢了,QQ283704122 展开
展开全部
一个明显的错误,你要把<tr></tr>也放入循环内,以下内容有错误
---------------------你的代码---------------------------
<tr>
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<td align="center"><%=(Recordset1.Fields.Item("bt").Value)%></td>
<td align="center"><%=(Recordset1.Fields.Item("djs").Value)%></td>
<td align="center">修改</td>
<td align="center">删除</td>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
</tr>
---------------------------------------------------------
应该改为
---------------------正确代码---------------------------
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<tr>
<td align="center"><%=(Recordset1.Fields.Item("bt").Value)%></td>
<td align="center"><%=(Recordset1.Fields.Item("djs").Value)%></td>
<td align="center">修改</td>
<td align="center">删除</td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
---------------------你的代码---------------------------
<tr>
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<td align="center"><%=(Recordset1.Fields.Item("bt").Value)%></td>
<td align="center"><%=(Recordset1.Fields.Item("djs").Value)%></td>
<td align="center">修改</td>
<td align="center">删除</td>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
</tr>
---------------------------------------------------------
应该改为
---------------------正确代码---------------------------
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<tr>
<td align="center"><%=(Recordset1.Fields.Item("bt").Value)%></td>
<td align="center"><%=(Recordset1.Fields.Item("djs").Value)%></td>
<td align="center">修改</td>
<td align="center">删除</td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%> <tr>
<td align="center"><%=(Recordset1.Fields.Item("bt").Value)%></td>
<td align="center"><%=(Recordset1.Fields.Item("djs").Value)%></td>
<td align="center">修改</td>
<td align="center">删除</td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%> <tr>
<td align="center"><%=(Recordset1.Fields.Item("bt").Value)%></td>
<td align="center"><%=(Recordset1.Fields.Item("djs").Value)%></td>
<td align="center">修改</td>
<td align="center">删除</td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<table width="685" border="0" cellpadding="6" cellspacing="0" id="1">
<tr>
<td width="50%" align="center"><strong>新闻标题</strong></td>
<td width="21%" align="center"><strong>点击数</strong></td>
<td width="18%" align="center"><strong>修改</strong></td>
<td width="11%" align="center"><strong>删除</strong></td>
</tr>
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<tr>
<td align="center"><%=(Recordset1.Fields.Item("bt").Value)%></td>
<td align="center"><%=(Recordset1.Fields.Item("djs").Value)%></td>
<td align="center">修改</td>
<td align="center">删除</td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
</table>
<p> </p>
<table border="0">
<tr>
<td><% If MM_offset <> 0 Then %>
<a href="<%=MM_moveFirst%>">第一页</a>
<% End If ' end MM_offset <> 0 %></td>
<td><% If MM_offset <> 0 Then %>
<a href="<%=MM_movePrev%>">前一页</a>
<% End If ' end MM_offset <> 0 %></td>
<td><% If Not MM_atTotal Then %>
<a href="<%=MM_moveNext%>">下一个</a>
<% End If ' end Not MM_atTotal %></td>
<td><% If Not MM_atTotal Then %>
<a href="<%=MM_moveLast%>">最后一页</a>
<% End If ' end Not MM_atTotal %></td>
</tr>
</table>
<tr>
<td width="50%" align="center"><strong>新闻标题</strong></td>
<td width="21%" align="center"><strong>点击数</strong></td>
<td width="18%" align="center"><strong>修改</strong></td>
<td width="11%" align="center"><strong>删除</strong></td>
</tr>
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<tr>
<td align="center"><%=(Recordset1.Fields.Item("bt").Value)%></td>
<td align="center"><%=(Recordset1.Fields.Item("djs").Value)%></td>
<td align="center">修改</td>
<td align="center">删除</td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
</table>
<p> </p>
<table border="0">
<tr>
<td><% If MM_offset <> 0 Then %>
<a href="<%=MM_moveFirst%>">第一页</a>
<% End If ' end MM_offset <> 0 %></td>
<td><% If MM_offset <> 0 Then %>
<a href="<%=MM_movePrev%>">前一页</a>
<% End If ' end MM_offset <> 0 %></td>
<td><% If Not MM_atTotal Then %>
<a href="<%=MM_moveNext%>">下一个</a>
<% End If ' end Not MM_atTotal %></td>
<td><% If Not MM_atTotal Then %>
<a href="<%=MM_moveLast%>">最后一页</a>
<% End If ' end Not MM_atTotal %></td>
</tr>
</table>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
直接在重复区域后面按 enter就行了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询