好的,我有一个<p>tag</p>
,但是当我添加它们时它不会创建换行符。例如,这个:
<p>Hello, this is simply a test. For some reason when I add a new line by pressing enter
like this, it won't save.</p>
打印为:
Hello this is simply a test. For some reason when I add a new line by pressing enter like this, it won't save.
如果您查看此处http://sesau.ca/ksp/KMP.html并查看源代码,您会发现他只是使用段落,并且通过回车获得换行符。他不使用 br 或任何东西。