new line without
tag

后端 未结 4 1462
被撕碎了的回忆
被撕碎了的回忆 2021-02-07 00:46

Writing this html:

lorem ipsum
lorem ipsum
lorem ipsum

browser shows:

lorem ipsumlorem ipsumlorem ipsum

Is th

4条回答
  •  囚心锁ツ
    2021-02-07 00:54

    Html: You may wrap them in block elements like

    or

    Css: You may use white-space: pre-wrap;

    Js: You may use "replace" to change "\n" to

提交回复
热议问题