当前位置:网站首页>BFC block level formatting context
BFC block level formatting context
2022-07-05 22:18:00 【Front end students】
BFC The understanding of the
- Block level formatting context
- Only Block box Participate in
- It has nothing to do with the outside , Have your own set of rendering rules
Application scenarios
- solve Sub elements float , Parent element height collapse problem
- Cancel the box margin Collapse problem ( Child element set to margin-top, Both parent and child elements will be together margin-top( solve : Add... To the parent element overflow))
- Prevent being overwritten by floating elements ( Brother element floating , The following elements are not floating ( solve : Add overflow), The following elements will be covered by the previous floating elements )
How to create BFC
- float Not for none
- display by inline-block flex by inline-flex
- position Not for static or relative
- overflow:hidden( best )
边栏推荐
- When the industrial Internet era is truly mature, we will look at the emergence of a series of new industrial giants
- 笔记本电脑蓝牙怎么用来连接耳机
- Assign the output of a command to a variable [repeat] - assigning the output of a command to a variable [duplicate]
- 如何开发引入小程序插件
- opencv 判断点在多边形内外
- Win11运行cmd提示“请求的操作需要提升”的解决方法
- Index optimization of performance tuning methodology
- Granularity of blocking of concurrency control
- database mirroring
- Oracle hint understanding
猜你喜欢
Business learning of mall commodity module
Performance monitoring of database tuning solutions
Cobaltstrike builds an intranet tunnel
Interview questions for famous enterprises: Coins represent a given value
The simple problem of leetcode is to split a string into several groups of length K
Database recovery strategy
Stored procedures and stored functions
AD637使用笔记
数据泄露怎么办?'华生·K'7招消灭安全威胁
Web3为互联网带来了哪些改变?
随机推荐
Talking about MySQL index
How can Bluetooth in notebook computer be used to connect headphones
C language knowledge points link
Index optimization of performance tuning methodology
"Chris Richardson microservices series" uses API gateway to build microservices
How to add new fields to mongodb with code (all)
科技云报道:算力网络,还需跨越几道坎?
[agc009e] eternal average - conclusion, DP
Countdown to 92 days, the strategy for the provincial preparation of the Blue Bridge Cup is coming~
如何开发引入小程序插件
CA certificate trampled pit
Oracle triggers
Database recovery strategy
What if win11 is missing a DLL file? Win11 system cannot find DLL file repair method
Ad637 notes d'utilisation
A long's perception
90后测试员:“入职阿里,这一次,我决定不在跳槽了”
数博会精彩回顾 | 彰显科研实力,中创算力荣获数字化影响力企业奖
Win11缺少dll文件怎么办?Win11系统找不到dll文件修复方法
Two stage locking protocol for concurrency control