在flexbox
问题:non-flexbox vs. flexbox margins According to the CSS Box Model specification:
"A flex container establishes a new flex formatting context for its contents. This is the same as establishing a block formatting context, except that flex layout is used instead of block layout."
In a flex formatting context,边缘不会崩溃,因为对含量的处理方式不同,rispetto是正常的块布局。浮子不会侵入Flex容器,并且容器的边缘与其子元素的边缘分开。免责声明: 提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发到邮箱:[email protected] 我们会第一时间内为您处理。
Copyright© 2022 湘ICP备2022001581号-3