vs
in clearing

后端 未结 12 1435
醉话见心
醉话见心 2021-02-02 10:47

What is the difference


vs

??

Al

12条回答
  •  无人共我
    2021-02-02 11:37

    This is the style that I use for clearing:

    .Clear { clear: both; height: 0; overflow: hidden; }
    

    Usage:

    This will not take up any extra space in the page as the height is zero.

    Internet Explorer has a strange idea that the content of each element has to be at least one character high, and another strange idea that each element should be as high as it's content. Using overflow: hidden keeps the content from affecting the size of the element.

提交回复
热议问题