What is the different between clearfix hack and overflow:hidden vs overflow:auto?

后端 未结 2 1723
梦谈多话
梦谈多话 2020-12-14 08:00

What is the different between clearfix hack and overflow:hidden vs overflow:auto ?

Are all same thing, which is best?

相关标签:
2条回答
  • 2020-12-14 08:44

    Ed Eliot has written the definitive guide on the subject.

    0 讨论(0)
  • 2020-12-14 08:49

    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/

    0 讨论(0)
提交回复
热议问题