当前位置:网站首页>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 )
边栏推荐
- Storage optimization of performance tuning methodology
- ESP32 hosted
- FBO and RBO disappeared in webgpu
- Sparse array [matrix]
- 极狐公司官方澄清声明
- Oracle views the data size of a table
- Technology cloud report won the special contribution award for the 10th anniversary of 2013-2022 of the "cloud Ding Award" of the global cloud computing conference
- The Blue Bridge Cup web application development simulation competition is open for the first time! Contestants fast forward!
- Some tutorials install the database on ubantu so as not to occupy computer memory?
- Hcip day 16
猜你喜欢
Leetcode simple question: check whether each row and column contain all integers
Advantages and disadvantages of the "Chris Richardson microservice series" microservice architecture
Leetcode simple question: find the nearest point with the same X or Y coordinate
Metaverse Ape上线倒计时,推荐活动火爆进行
The difference between MVVM and MVC
Database tuning solution
IIC bus realizes client device
数博会精彩回顾 | 彰显科研实力,中创算力荣获数字化影响力企业奖
Talking about MySQL index
Implementation technology of recovery
随机推荐
实战:fabric 用户证书吊销操作流程
AD637使用筆記
AD637 usage notes
database mirroring
如何快速体验OneOS
Leetcode simple question check whether all characters appear the same number of times
Bitbucket installation configuration
Leetcode simple question ring and rod
Livelocks and deadlocks of concurrency control
Lightweight dynamic monitorable thread pool based on configuration center - dynamictp
Hcip day 16
Pinctrl subsystem and GPIO subsystem
Learning of mall permission module
Some tutorials install the database on ubantu so as not to occupy computer memory?
ESP32 hosted
Technology cloud report: how many hurdles does the computing power network need to cross?
Ad637 notes d'utilisation
Evolution of large website architecture and knowledge system
Assign the output of a command to a variable [repeat] - assigning the output of a command to a variable [duplicate]
[Yugong series] go teaching course in July 2022 004 go code Notes