br clear=“all” vs css solution

前端 未结 5 1032
隐瞒了意图╮
隐瞒了意图╮ 2021-01-11 17:27

I have a div that is float:left, and after the div is the rest of the page. In order to keep the rest of the page below the div, I must first place a


5条回答
  •  不要未来只要你来
    2021-01-11 18:07

    On the next item you can use the style clear:left.

    Another alternative is to set the overflow style on the parent of the floating element to make it contain it, like overflow:hidden.

提交回复
热议问题