ASP问题求助,如何实现调用文字横向排列达到预定宽度后自动分行

来源:百度知道 编辑:UC知道 时间:2024/05/12 02:07:51
<table width="830" cellpadding="0" cellspacing="0">

<tr>
<td height="25" bgcolor="3399cc" align="center"><font size="2" color="ffffff"><strong>VOIP客户名录</strong></font></td>
</tr>
<tr>
<td><table width="830"><tr><%
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from voip where newkh=1 order by khidorder",conn,1,1
if rs.recordcount=0 then
response.write "<br>目前没有客户"
else
while not rs.eof
%>
<td><font size="2"><%=rs("khname")%>
(<%=rs("ttn")%>)</font></td><%
rs_s.close
set rs_s=nothing
rs.movenext
wend
end if
rs.close
set rs=nothing
%></tr&

<table width="830" cellpadding="0" cellspacing="0">
<tr>
<td height="25" bgcolor="3399cc" align="center"><font size="2" color="ffffff"><strong>VOIP客户名录</strong></font></td>
</tr>
<tr>
<td><table width="830"><%
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from voip where newkh=1 order by khidorder",conn,1,1
if rs.recordcount=0 then
response.write "<br>目前没有客户"
else
i=1
t=5 '假设一行排列5个单元格
while not rs.eof
if i=1 then Response.Write "<tr>"
%>
<td><font size="2"><%=rs("khname")%>
(<%=rs("ttn")%>)</font></td><%
'rs_s.close 你代码里这两行多余的吧?
'set rs_s=nothing
if i=t th