注册 登录
编程论坛 ASP技术论坛

[求助]表格怎么实现同一行输出

willam 发布于 2007-09-10 10:30, 651 次点击

大家不好意思!我知道这样的问题己经有人问过的,,但是我找不到那贴子了,,麻烦各位再帮我解决一下好嘛,以
下代码
<table width="479" height="201" border="1" cellpadding="0" cellspacing="0">
<tr>
<td height="199">
<%for i=1 to 10
%>
<table width="111" height="96" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="123" height="89">&nbsp;</td>
</tr>
</table>
<%
next
%>
</td>
</tr>
</table>

输出是:坚的输10表格,我要横着输出10表格怎么实现

4 回复
#2
hmhz2007-09-10 11:21
#3
willam2007-09-10 12:18

不是这个,,,我要循环输出时一横着输出的,,,不是坚的

#4
hmhz2007-09-10 13:14
改成这样的

<table width="479" height="201" border="1" cellpadding="0" cellspacing="0">
<tr>
<%for i=1 to 10%>
<td height="199">
<table width="111" height="96" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="123" height="89"><%=i%></td>
</tr>
</table>
</td>
<%next%>
</tr>
</table>

简化一点可以这样
<table width="479" height="201" border="1" cellpadding="0" cellspacing="0">
<tr>
<%for i=1 to 10%>
<td height="199"><%=i%></td>
<%next%>
</tr>
</table>

[此贴子已经被作者于2007-9-10 13:16:44编辑过]

#5
willam2007-09-10 22:21

hmhz谢谢你啦

1