当前位置:网站首页>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 )
边栏推荐
- 1.3 years of work experience, double non naked resignation agency face-to-face experience [already employed]
- How to add new fields to mongodb with code (all)
- What about data leakage? " Watson k'7 moves to eliminate security threats
- Sub total of Pico development
- ESP32 hosted
- [Yugong series] go teaching course in July 2022 004 go code Notes
- 航海日答题小程序之航海知识竞赛初赛
- IIC bus realizes client device
- CA certificate trampled pit
- The statistics of leetcode simple question is the public string that has appeared once
猜你喜欢

Business learning of mall order module

The real situation of programmers

Learning of mall permission module

Decorator learning 01

IIC bus realizes client device

700. Search in a Binary Search Tree. Sol

数据泄露怎么办?'华生·K'7招消灭安全威胁

Overview of database recovery

Cobaltstrike builds an intranet tunnel

Server optimization of performance tuning methodology
随机推荐
[agc009e] eternal average - conclusion, DP
70. Climbing Stairs. Sol
50. Pow(x, n). O(logN) Sol
Summary of concurrency control
509. Fibonacci Number. Sol
How to quickly experience oneos
Win11 runs CMD to prompt the solution of "the requested operation needs to be promoted"
Understand the basic concept of datastore in Android kotlin and why SharedPreferences should be stopped in Android
Three "factions" in the metauniverse
Overview of concurrency control
Official clarification statement of Jihu company
Damn, window in ie open()
Shelved in TortoiseSVN- Shelve in TortoiseSVN?
The statistics of leetcode simple question is the public string that has appeared once
Go语言学习教程(十五)
Database tuning solution
Advantages and disadvantages of the "Chris Richardson microservice series" microservice architecture
K210学习笔记(四) K210同时运行多个模型
The American Championship is about to start. Are you ready?
Sentinel production environment practice (I)