打印

急。。asp自动分段问题?感谢(有源码)

急。。asp自动分段问题?感谢(有源码)

下面是我做的一个粗糙的页面,发布的文章都只有一整段,没有分段,实在很难看!我加了分段代码的可能不行,显示的还是一整段?请大家帮我看看下面这段代码有什么问题?初学很愚笨,请大家指教了!小弟感谢!



<!--#include file="css.css"-->
<!--#include file="conn.asp"-->
<html>
<head>
<title>测试</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
td {
font-size: 12px;
line-height: 200%;
text-indent: 25px;
margin-top: 0;
margin-bottom: 0;
VISIBILITY:
inherit;
WIDTH:100%;
Z-INDEX: 2
}
-->
</style>
<style type="text/css">
<!--
a:visited {
color: #000000;
text-decoration: none;
}
a:hover {
color: #ff0000;
text-decoration: none;
}
a:link {
color: #000000;
text-decoration: none;
}
-->
</style>
</head>
<%
set rs=server.createobject("adodb.recordset")
sql="SELECT * from wzxx where id="&request("id")
rs.open sql,conn,3,2
%>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="600" border="1" align="center" cellpadding="0" cellspacing="0"

bordercolor="#333333">
<tr bordercolor="#FFFFFF">
<td>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"

background="images/bj.gif">
<tr>
<td height="18" bgcolor="#FFd384"><strong>
color="#FF0000"><%=rs("lanmu")%></strong></td>
</tr>
<tr>
<td height="18" bgcolor="8799ad"><div align="center"><strong><font color="#FF0000"

size="+1"><%=rs("xinxibiaoti")%></strong></div>
</td>
</tr>
<tr>
<td height="9"><div align="center"><%=rs("number")%></div></td>
</tr>
<tr>
<td height="10"><div align="right">【<%=rs("riqi")%>】</div></td>
</tr>
<tr>
<td height="9">
<%=replace(rs("eee"),chr(10)&chr(13),"<br>")%> </tr>
<tr>
<td height="9" background="image/xx aaa.gif"> </td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

TOP

<%=replace(rs("eee"),chr(10)&chr(13),"<br>")%> </tr>

你把换行回车都替换掉了,怎么还会有段落!

TOP

本功能由奇虎搜索实现

相关主题

标题 作者 最后发表
[站外] Flash常用代码集锦   [转帖] zyyxwxh 2008-11-03
[站外] 2007月1月29日精品源码更新列表   [转帖] 雨落空林 2008-11-19
[站外] 常见电脑问题解答转帖   [转帖] 依旧 2008-09-22
点击阅读更多关于的相关帖子  更多相关主题