关于分页显示中的换行显示原理代码
2007-07-15 09:54
369 查看
<!--#include file="conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<%
Dim rs
Set rs=server.CreateObject("adodb.recordset")
sql="select * from test1 "
rs.open sql ,conn,1
%>
<body>
<table width="80%" border="1" cellpadding="1" cellspacing="5" bordercolor="#9900FF" bgcolor="#0000FF">
<tr>
<%
i=0
do while not rs.eof
if i mod 2<>0 then
%>
<td bgcolor="#FFFFFF"><%=rs(0)%><%=rs(1)%></td>
<%else%>
</tr>
<tr>
<td bgcolor="#FFFFFF"><%=rs(0)%><%=rs(1)%></td>
<%
end if
i=i+1
rs.movenext
loop
rs.close
conn.close
%>
</tr>
</table>
<p> </p>
<table width="43%" border="1" align="center" cellpadding="1" cellspacing="0">
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>5</td>
<td>6</td>
</tr>
</table>
<p> </p>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<%
Dim rs
Set rs=server.CreateObject("adodb.recordset")
sql="select * from test1 "
rs.open sql ,conn,1
%>
<body>
<table width="80%" border="1" cellpadding="1" cellspacing="5" bordercolor="#9900FF" bgcolor="#0000FF">
<tr>
<%
i=0
do while not rs.eof
if i mod 2<>0 then
%>
<td bgcolor="#FFFFFF"><%=rs(0)%><%=rs(1)%></td>
<%else%>
</tr>
<tr>
<td bgcolor="#FFFFFF"><%=rs(0)%><%=rs(1)%></td>
<%
end if
i=i+1
rs.movenext
loop
rs.close
conn.close
%>
</tr>
</table>
<p> </p>
<table width="43%" border="1" align="center" cellpadding="1" cellspacing="0">
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>5</td>
<td>6</td>
</tr>
</table>
<p> </p>
</body>
</html>
相关文章推荐
- 简单asp分页显示代码
- JSP实现的简单分页显示效果代码
- jsp分页显示的代码与详细步骤 复制代码
- 让示例代码在手机上换行显示
- UITableView 实现分页显示的代码
- 关于在CListCtrl中分页显示记录集
- UITableView 实现分页显示的代码
- 转载:分页原理+分页代码+分页类制作
- 在MYSQL中实现分页显示的代码--SHOPPING
- CSS改变simditor代码区间的默认显示样式和自动换行
- 关于VS2005中C#代码用F12转到定义时,总是显示从元数据的问题
- 分页原理以及代码分析
- JSP分页显示的实例代码
- ci实现RBAC,详细解释原理和核心代码显示
- 关于邮件不能正常收发显示错误代码为0x800CCC15的解决方法
- iOS-UITableView 实现分页显示的代码
- Oracle 分页显示 (原代码)
- asp.net datalist 分页显示代码
- 关于MyEclipse的一些设置(代码提示、显示行号)
- jsp分页显示的代码与详细步骤