The way to display data horizontally in asp is actually to control tr td to achieve multiple rows and multiple columns. You can first use a static table and then loop the output.
Copy the code as follows:<%
sql=select * from serr where order by id asc
set rs=server.createobject(adodb.recordset)
rs.open sql,conn,1,1
%><style type=text/css>
< !--
body,td,th {
font-size: 12px;
}
-->
</style>
<table width=100% align='center'>
<%
for i=1 to rs.recordCount 'Variable i from 1 Loop to the total number of records in the database
if (i mod 4 =1) then 'Each tr displays 4 records, which can be modified as needed
response.write <tr>
end if
response.write <td width=200>&rs ( title)&<br>&rs(con)&<br>&rs(www)&<br>&rs(keyword)&</td>
if (i mod 4 = 0) then
response.write </tr>
end if
rs .movenext
next
rs.close
%>
</table>