Why
is used after multiple floating DIVS in a container DIV?

后端 未结 6 1600
眼角桃花
眼角桃花 2020-12-30 06:25

I have encountered a

at many places, but I am not aware why is it done? Can someone brief me on this, why it is used in
6条回答
  •  心在旅途
    2020-12-30 07:05

    It is to clear out floating styles.

    clear: http://www.w3.org/wiki/CSS/Properties/clear

    float: http://www.w3.org/wiki/CSS/Properties/float

提交回复
热议问题