How to insert line breaks in HTML documents using CSS

前端 未结 12 1704
情深已故
情深已故 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:38

    Form controls are treated specially by browsers, so a lot of things don't necessarily work as they should. One of these things is generated content - it doesn't work for form controls. Instead, wrap the labels in and use label:before { content: '\a' ; white-space: pre; }. You can also do it by floating everything and adding clear: left to the elements.

提交回复
热议问题