How to insert line breaks in HTML documents using CSS

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

    It looks like you've got a bunch of form items you'd like to show in a list, right? Hmm... if only those HTML spec guys had thought to include markup to handle a list of items...

    I'd recommend you set it up like this:

    Then the CSS gets a lot easier.

提交回复
热议问题