asp与ACCESS做,怎么不能换行呢?

来源:百度知道 编辑:UC知道 时间:2024/05/28 10:33:36
<%=rs("intro")%> 其中intro里面有很多段,怎么搞?牛人快来啊

呵呵很简单啊,我给你介绍个最简单的方法
<%

response.write replace(rs("intro"),vbcrlf,"<br>")
%>
其实刚保存进数据库时你就该注意把这个vbcrlf表示的回车转换成html格式的br或者p标记啊。
replace函数是用来替换的常用函数,比较方便。