请高手帮助!

来源:百度知道 编辑:UC知道 时间:2024/05/10 19:37:27
以下是图片显示,只能显一排
现在我想让他每排显5张,显10排,请问怎么改?

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="100">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr><%
ae=0
set rs = Server.CreateObject("ADODB.RecordSet")
sql="select top 10 * from [xinxi] where tj='ttui' order by id desc"
rs.open sql,conn,3,3
do while not rs.eof
%>
<td height="100">
<div align="center"> <a title="点击查看信息>>>" href="xinfo.asp?dick=<%=rs("id")%>">
</a>
<table width="113" height="86" border="0" cellpadding=&q

试试这个:

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="100">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<%
ae=0
set rs = Server.CreateObject("ADODB.RecordSet")
sql="select top 10 * from [xinxi] where tj='ttui' order by id desc"
rs.open sql,conn,3,3
do while not rs.eof
if ae mod 5 = 0 then
%>
<tr>
<%
end if
%>
<td height="100">
<div align="center"> <a title="点击查看信息>>>" href="xinfo.asp?dick=<%=rs("id")%>">
</a>
<table width="113" height="86" border="0" cellpadding="0" cellspacing=&