Using :after to clear floating elements

后端 未结 5 953
失恋的感觉
失恋的感觉 2020-11-29 19:57

I have a list and the li\'s have a float:left;. The contents after the

    should be aligned correctly. Therefore i can build the following:
5条回答
  •  星月不相逢
    2020-11-29 20:49

    The text 'dasda' will never not be within a tag, right? Semantically and to be valid HTML it as to be, just add the clear class to that:

    http://jsfiddle.net/EyNnk/2/

提交回复
热议问题