标题:显示的问题
只看楼主
belin2000
Rank: 3Rank: 3
等 级:论坛游侠
威 望:5
帖 子:975
专家分:194
注 册:2004-6-2
结帖率:0
 问题点数:0 回复次数:3 
显示的问题
<!--#include file="conn.asp"-->
<%
Function ChangeHTML2(sHTML)
Dim cHTML
cHTML=replace(sHTML,"<","<",1)
cHTML=replace(cHTML,">",">",1)
cHTML=replace(cHTML,"''","'",1)
cHTML=replace(cHTML,chr(34),"”",1)
ChangeHTML2=cHTML
End Function
%>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from new where id=" &request.querystring("id")
rs.open sql,conn,1,1
%>
<% neirong=changeHTML2(rs("neirong"))%>
<div align="center">
     <table cellpadding="0" cellspacing="0" width="546" height="236">
           <!-- MSTableType="layout" -->
           <tr>
                 <td valign="top" height="16">
                 <p align="center"><%=rs("id")%> </td>
           </tr>
           <tr>
                 <td valign="top" height="16">
                 <p align="right"><%=rs("id")%> </td>
           </tr>
           <tr>
                 <td valign="top" height="204" width="546">
                 <table style="table-layout:fixed" width="545">
<tr>
<td style="word-break:break-all"><%=rs("neirong")%> </td>
                       </tr>
                 </table>
                 </td>
           </tr>
     </table>
</div>
为什么neirong部分我在textbox那里可以有分段的,但这样写就没有分段 ,不解
搜索更多相关主题的帖子: replace include center where file 
2004-06-04 09:01
Rank: 1
等 级:新手上路
帖 子:98
专家分:0
注 册:2004-3-30
得分:0 

[QUOTE]<td style="word-break:break-all"><%=rs("neirong")%> </td>[/QUOTE]

是这个neirong吗,你是指怎么不能分段,用<p></p>就可以分段了


在风中迷茫的男孩
2004-06-04 09:28
liu198143
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2004-7-29
得分:0 
dfdfdfd
dfdfdfdfd

淡泊明志,清净志远
2004-08-17 17:03
griefforyou
Rank: 6Rank: 6
等 级:贵宾
威 望:27
帖 子:3336
专家分:0
注 册:2004-4-15
得分:0 

<% Function ChangeHTML2(sHTML) Dim cHTML cHTML=replace(sHTML,"<","<",1) cHTML=replace(cHTML,">",">",1) cHTML=replace(cHTML,"''","'",1) cHTML=replace(cHTML,chr(34),"”",1)

cHTML=replace(cHTML,vbcrlf,"<BR>") '加一行

ChangeHTML2=cHTML End Function %>


天津网站建设 http://www./
2004-08-17 18:24



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-2015-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.225821 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved