“Best clearfix ever?”

前端 未结 5 2213
借酒劲吻你
借酒劲吻你 2021-02-06 18:12

I saw this rather different method for clearfix here: http://www.marcwatts.com.au/blog/best-clearfix-ever/

It proposes adding the following CSS code which automates clea

5条回答
  •  南笙
    南笙 (楼主)
    2021-02-06 19:07

    Are there any disadvantages to this method?
    

    One would be that it won't be enough in < IE8, since the 'after' element isn't that well supported. More about that at CSS tricks

提交回复
热议问题