Why “overflow: hidden” clears a float?

戏子无情 提交于 2019-12-17 09:32:51

问题


The question is simple and short: why does overflow: hidden; clear floating? I looked in to the w3 standard documentation and it did not imply anything.


回答1:


Because you establish a new Block Formatting Context when using overflow with anything ofther then visible (link to the w3.org specs).



来源:https://stackoverflow.com/questions/4910075/why-overflow-hidden-clears-a-float

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!