What is the different between clearfix hack and overflow:hidden vs overflow:auto?
What is the different between clearfix hack
and overflow:hidden
vs 开发者_Python百科overflow:auto
?
Are all same thing, which is best?
Ed Eliot has written the definitive guide on the subject.
Over flow hidden will work like a charm in modern browsers even in IE7, but not IE6 and here where the clearfix method becomes handy.so if you have to target IE6 then clearfix is your friend. here is the new clearfix hack http://perishablepress.com/press/2009/12/06/new-clearfix-hack/
精彩评论