germchen在上个帖子中说
引用:
<table border="0" cellspacing="1" width="100%" bgcolor="#242424">
<tr>
<td width="50%" bgcolor="#FFFFFF"> </td>
<td width="50%" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="50%" bgcolor="#FFFFFF"> </td>
<td width="50%" bgcolor="#FFFFFF"> </td>
</tr>
</table>
用填充色也是一种办法
那怎么用asp和数据库结合用呢,比如下面这个页面,这样的表格循环有问题
图片如下:
源码在这,请高手帮忙改一下
<!--#include file="conn.asp"-->
<b><a href="say.asp">发表帖子</a></b><br><br>
<div align="center">
<center>
<table width="100%" height="26" border="0" cellspacing="1" bordercolor="#000000" bgcolor="#000000">
<tr bgcolor="#FFFFFF">
<td width="4%" nowrap><div align="center"><strong>项目</strong></div></td>
<td width="8%" nowrap><div align="center"><strong>项目名称</strong></div></td>
<td width="8%" nowrap><div align="center"><strong>甲方名称</strong></div></td>
<td width="6%" nowrap><div align="center"><strong>联系人</strong></div></td>
<td width="8%" nowrap><div align="center"><strong>联系方式</strong></div></td>
<td width="8%" nowrap><div align="center"><strong>协议内容</strong></div></td>
<td width="8%" nowrap><div align="center"><strong>提资时间</strong></div></td>
<td width="10%" nowrap><div align="center"><strong>模型负责人</strong></div></td>
<td width="8%" nowrap><div align="center"><strong>模型时间</strong></div></td>
<td width="10%" nowrap><div align="center"><strong>后期负责人</strong></div></td>
<td width="8%" nowrap><div align="center"><strong>后期时间</strong></div></td>
<td width="8%" nowrap><div align="center"><strong>项目状态</strong></div></td>
<td width="6%" nowrap><div align="center"><strong>备注</strong></div></td>
</tr>
</table>
</center>
</div><hr size="1" color="#FF0000">
<%i=1
set showbbs=conn.execute("select*from bbs order by id desc"
do while not showbbs.eof
%>
<table width="100%" height="26" border="0" cellspacing="1" bordercolor="#000000" bgcolor="#000000">
<tr bgcolor="#FFFFFF" onmouseover="this.style.background='#BDDFFF'" onmouseout="this.style.background='#FFFFFF'" >
<td width="4%" nowrap><div align="center"><%=showbbs("name"
%></div></td>
<td width="8%" nowrap><div align="center"><a href="show.asp?id=<%=showbbs("id"
%>"><%=showbbs("title"
%></a></div></td>
<td width="8%" nowrap><div align="center"></div></td>
<td width="6%" nowrap><div align="center"></div></td>
<td width="8%" nowrap><div align="center"></div></td>
<td width="8%" nowrap><div align="center"></div></td>
<td width="8%" nowrap><div align="center"></div></td>
<td width="10%" nowrap><div align="center"></div></td>
<td width="8%" nowrap><div align="center"></div></td>
<td width="10%" nowrap><div align="center"></div></td>
<td width="8%" nowrap><div align="center"></div></td>
<td width="8%" nowrap><div align="center"></div></td>
<td width="6%" nowrap><div align="center"></div></td>
</tr>
</table>
<%i=i+1
if i>50 then exit do
showbbs.movenext
Loop
showbbs.Close
set showbbs=nothing
%>