ASP如何横向显示?

来源:百度知道 编辑:UC知道 时间:2024/05/27 15:36:54
<table width="100%" border="0" align="center" cellpadding="0">
<%Set rs= Server.CreateObject("ADODB.Recordset")
sql="select top 20 id,address,username from company where hide=0 and "&show&" order by addtime desc"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
%>
<TR><td><font class="a" face="宋体">没有任何企业</font></td>
</tr>
<%
else

%>
<%do while not rs.eof%>
<TR>
<TD><font class="a" face="宋体"> <a href="show.asp?id=<%=rs("id")%>" target="_blank">

<%=rs("address")%>

</a></font></TD>

<table width="100%" border="0" align="center" cellpadding="0">
<%Set rs= Server.CreateObject("ADODB.Recordset")
sql="select top 20 id,address,username from company where hide=0 and "&show&" order by addtime desc"
rs.open sql,conn,1,1

if rs.eof and rs.bof then

%>
<TR><td><font class="a" face="宋体">没有任何企业</font></td>
</tr>
<%
else

col = 5
ii =1
%>
<TR>
<%do while not rs.eof%>

<TD><font class="a" face="宋体"> <a href="show.asp?id=<%=rs("id")%>" target="_blank">

<%=rs("address")%>

</a></font></TD>