日期:2014-05-18  浏览次数:20546 次

求教html中换行标记的问题
<html>
<%@page autoFlush="false"%>
<head><title>test4.7.jsp</title></head>
<body>
<pre>
  <%
out.println("hello");
out.clear();
out.println("Still say hello");
out.println("BufferSize of the out Object is : "+out.getBufferSize());
out.println("Remain of buffer is:"+out.getRemaining());
  %>
</pre>
</body>
</html>
为什么不能换行呢?如果不用br标记只用pre标记如何写呢?


------解决方案--------------------
我也是新人,为什么不还行 我觉得他不是在 java代码里
如果不用br 你就用pre一个pre是一个段落 你自己分开就行 当然肯定没有用br方便了
------解决方案--------------------
你先看看浏览器解释出来的html内容,即查看页面源代码,看看它的内容你就知道了,该加什么就加什么。
------解决方案--------------------
郁闷 有br为啥不用