当前位置:网站首页>BFC面试简述
BFC面试简述
2022-07-04 19:04:00 【大鸡腿最好吃】
bfc简单来说就是块级格式化上下文,它是一个独立渲染区域,它的内部布局不受外部元素的影响
bfc触发条件
float:left、right
overflow:hidden
position:固定定位和绝对定位
display:flex
应用场景:
避免margin重叠
高度塌陷(子元素有浮动,父元素高度自适应,本来应该是子元素撑起父元素,但是并没有撑起)
浮动元素覆盖未浮动的元素(自适应性布局)
边栏推荐
- 关于联邦学习和激励的相关概念(1)
- YOLOv5s-ShuffleNetV2
- Informatics Olympiad 1336: [example 3-1] find roots and children
- node强缓存和协商缓存实战示例
- 2022 Health Exhibition, Beijing Health Expo, China Health Exhibition, great health exhibition November 13
- Dark horse programmer - software testing - stage 08 2-linux and database-23-30-process port related, modify file permissions, obtain port number information, program and process related operations, Li
- Length of the longest integrable subarray
- CDGA|数据治理不得不坚持的六个原则
- Template_ Large integer subtraction_ Regardless of size
- 1500万员工轻松管理,云原生数据库GaussDB让HR办公更高效
猜你喜欢
上线首月,这家露营地游客好评率高达99.9%!他是怎么做到的?
Neural network IOT platform construction (IOT platform construction practical tutorial)
Related concepts of federal learning and motivation (1)
Win11亮度被锁定怎么办?Win11亮度被锁定的解决方法
Huawei Nova 10 series supports the application security detection function to build a strong mobile security firewall
NLP, vision, chip What is the development direction of AI? Release of the outlook report of Qingyuan Association [download attached]
Dark horse programmer - software testing - 09 stage 2-linux and database -31-43 instructions issued by modifying the file permission letter, - find the link to modify the file, find the file command,
什么叫内卷?
如何让你的小游戏适配不同尺寸的手机屏幕
Actual combat simulation │ JWT login authentication
随机推荐
Application practice | Shuhai supply chain construction of data center based on Apache Doris
凌云出海记 | 一零跃动&华为云:共助非洲普惠金融服务
如何让你的小游戏适配不同尺寸的手机屏幕
最长的可整合子数组的长度
Pytoch learning (4)
栈:如何实现有效括号的判断?
2022 version of stronger jsonpath compatibility and performance test (snack3, fastjson2, jayway.jsonpath)
针对深度学习的“失忆症”,科学家提出基于相似性加权交错学习,登上PNAS
电脑页面不能全屏怎么办?Win11页面不能全屏的解决方法
C # better operation mongodb database
Lingyun going to sea | Murong Technology & Huawei cloud: creating a model of financial SaaS solutions in Africa
Kotlin cycle control
Lingyun going to sea | Wenhua online & Huawei cloud: creating a new solution for smart teaching in Africa
Employment prospects and current situation of Internet of things application technology
Kotlin condition control
How to adapt your games to different sizes of mobile screen
同事的接口文档我每次看着就头大,毛病多多。。。
漫谈客户端存储技术之Cookie篇
Chrome development tool: what the hell is vmxxx file
复杂因子计算优化案例:深度不平衡、买卖压力指标、波动率计算