当前位置:网站首页>布局---BFC(块级格式化上下文)详解
布局---BFC(块级格式化上下文)详解
2022-07-20 17:30:00 【Cirrod】
1.定义
BFC:块格式化上下文(Block Formatting Context)
- 是Web页面的可视CSS渲染的一部分,是块盒子的布局过程发生的区域,也是浮动元素与其他元素交互的区域。
2.如何使元素(盒子)变成BFC盒子
①html标签是BFC盒子
②浮动的元素也是BFC盒子
③行内块元素也是BFC盒子
④overflow属性值不为visivle。如auto、hidden
⑤.......
3.BFC盒子的特点
① BFC盒子会默认包裹住内部子元素(标准流、浮动)→应用:清除浮动
② BFC盒子本身与子元素之间不存在margin的塌陷现象→应用:解决margin的塌陷
③........
案例详解参考:
边栏推荐
- My creation anniversary (July 18, 2021 - July 18, 2022)
- When does MySQL use table locks and row locks?
- 学习记录十六
- 【MySQL】 insert into ... select ...
- Cbcgptreectrlex control used by BCG
- 请问民生期货怎么样?安全吗?
- Maixll-Dock 二维码识别
- [MySQL] get table information and all column names
- Modification and use of j-vxe-table and j-popup components in jeecg
- 科技云报道:云巨头的中场战事:PaaS、SaaS成为关键破局点?
猜你喜欢
随机推荐
Introduction to MySQL (a)
What kind of product is Jetson TX2 NX? (how Jetson TX2 NX provides powerful energy efficiency)
Segment tree - interval modification tree
【MySQL】 insert into ... select ...
VGA设计(原理说明。Verilog代码实现,仿真结果)
Overseas app push (Part 1): differences between manufacturer channel and Google FCM channel
How Jenkins sends email, advanced test hands-on to teach you
函数默认参数避坑指南
分享丨写在工作13年后,个人的一点软件测试经历及感想……
信息化概论
ESP32 485空气温湿度测试
Orepa: Ali proposed a heavy parameter strategy with fast training. The memory is halved and the speed is doubled | CVPR 2022
东方财富网上开户安全吗,是否正规
让软件开发民主化的低代码
Learning record XVI
东方财富网开户安全吗,没开过不敢开
【问题解决】win服务器磁盘初始化
接口测试常用工具及测试方法(零基础篇)
SSM integrates annotation mapping and XML Mapping
Cbcgptreectrlex control used by BCG