How to insert line breaks in HTML documents using CSS

前端 未结 12 1684
情深已故
情深已故 2020-12-29 01:53

I\'m writing a web service, and I want to return the data as XHTML. Because it\'s data, not markup, I want to keep it very clean - no extra

s or
12条回答
  •  春和景丽
    2020-12-29 02:44

    the following would give you the newlines. It would also put extra spaces out in front though... you'd have to mess up your source indentation by removing the tabbing.

    form { white-space: pre }
    

提交回复
热议问题