Skip to content
xjq
Main Navigation
blog日常
前端
技术专题
读书笔记
cpp
其他
个人领地
图床
在线编辑器
http协议
AwesomeStudy
我的力扣
resume
友链
天真的小窝
Lexmin0412
1874
tools.fun 工具导航
GitHub
Appearance
GitHub
Menu
Return to top
On this page
Table of Contents for current page
flex 布局
居中布局
BFC
flex-布局
#
居中布局
#
BFC
#
块级格式化上下文
BFC 的原理
BFC 这个元素的垂直的边距会发生重叠
BFC 的区域不会与浮动元素的 float 重叠
独立的容器,内外元素互不影响
计算 BFC 高度,浮动元素也参与计算
BFC 创建
float 不为 none 的时候
position 不为 static 或者 relative 的时候
display 与 table 相关的时候
overflow 为 auto, hidden 的时候
BFC 应用
解决边距重叠问题