How to insert line breaks in HTML documents using CSS

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

    One option is to specify a XSLT template within your XML that (some) browsers will process allowing you to include presentation with mark-up, CSS, colors etc. that shouldn't affect consumers of the web service.

    Once in XHTML you could simply add some padding around the elements with CSS, e.g.

    form input.a { margin-bottom: 1em }

提交回复
热议问题