dw将记录集重复区域后不自动换行,怎么改啊?部分代码:
<tablewidth="100%"border="0"cellspacing="0"cellpadding="0"><tr><tdwidth="41%"valign="...
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="41%" valign="top"><table width="100%" border="1" cellspacing="0" cellpadding="5">
<tr>
<td width="55%"><div align="center"><strong>类别名称</strong></div></td>
<td width="24%"><div align="center"><strong>修改</strong></div></td>
<td width="21%"><div align="center"><strong>删除</strong></div></td>
</tr>
<tr>
<td><%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<%=(Recordset1.Fields.Item("lbmc").Value)%>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%></td>
<td><div align="center"><a href="yp_xg.asp">修改</a></div></td>
<td><div align="center"><a href="yp_lb.asp">删除</a></div></td>
</tr>
</table></td>
<td width="59%"><form method="post" action="<%=MM_editAction%>" name="form1">
<table border="1" align="center" cellpadding="5">
<tr valign="baseline">
<td width="116" align="right" nowrap>艺品类别名称:</td>
<td width="233"><input type="text" name="lbmc" value="" size="32"> </td>
</tr>
<tr valign="baseline">
<td colspan="2" align="center" nowrap><input type="submit" value="插入记录"> </td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form1">
</form>
<p> </p></td>
</tr>
</table> 展开
<tr>
<td width="41%" valign="top"><table width="100%" border="1" cellspacing="0" cellpadding="5">
<tr>
<td width="55%"><div align="center"><strong>类别名称</strong></div></td>
<td width="24%"><div align="center"><strong>修改</strong></div></td>
<td width="21%"><div align="center"><strong>删除</strong></div></td>
</tr>
<tr>
<td><%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<%=(Recordset1.Fields.Item("lbmc").Value)%>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%></td>
<td><div align="center"><a href="yp_xg.asp">修改</a></div></td>
<td><div align="center"><a href="yp_lb.asp">删除</a></div></td>
</tr>
</table></td>
<td width="59%"><form method="post" action="<%=MM_editAction%>" name="form1">
<table border="1" align="center" cellpadding="5">
<tr valign="baseline">
<td width="116" align="right" nowrap>艺品类别名称:</td>
<td width="233"><input type="text" name="lbmc" value="" size="32"> </td>
</tr>
<tr valign="baseline">
<td colspan="2" align="center" nowrap><input type="submit" value="插入记录"> </td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form1">
</form>
<p> </p></td>
</tr>
</table> 展开
若以下回答无法解决问题,邀请你更新回答
1个回答
展开全部
While 语句 放到td里面了 修改到外面就好了
更多追问追答
追问
把td 放到哪个位置?我试过几个地方,比如 的两边,还是不行
追答
<% While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) %>
<td>
<%=(Recordset1.Fields.Item("lbmc").Value)%>
</td>
就是这样。 把while语句放到外面。明白了吗。
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询