hr clear vs div clear. Which is better?

前端 未结 4 868
栀梦
栀梦 2021-01-20 18:18

This is a general question and something that dawned on me and seemed to make sense. I have seen many people use clearing divs

and
4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-20 19:03

    The better solution is to not use any elements and use overflow:hidden with a hasLayout trigger for IE, or the clearfix.

    Which clearfix method?

提交回复
热议问题