[css]clearfix

好奇清浮动为什么叫clearfix 而不是clearfloat

方方老师的答案:
因为它是个fix.

自己的答案:
clearfix, combined with two words, is a kind of use of clear property to fix the float problem.

参考文献

  1. https://css-tricks.com/all-about-floats/
  2. http://stackoverflow.com/questions/8554043/what-is-a-clearfix

你可能感兴趣的:([css]clearfix)