开发者

Why "overflow: hidden" clears a float?

开发者 https://www.devze.com 2023-02-09 00:20 出处:网络
The question is simp开发者_运维问答le and short: why does overflow: hidden; clear floating? I looked in to the w3 standard documentation and it did not imply anything.Because you establish a new Block

The question is simp开发者_运维问答le and short: why does overflow: hidden; clear floating? I looked in to the w3 standard documentation and it did not imply anything.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消