How to insert line breaks in HTML documents using CSS

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

    The CSS clear element is probably what you are looking for the get linebreaks. Something along:

    #login form input { clear: both; }

    will make sure the no other floating elements are left to either side of you input fields.

    Reference

提交回复
热议问题