当前位置:网站首页>Preliminary understanding of float
Preliminary understanding of float
2022-07-28 10:53:00 【Much less】
float float
Three values :
none The default value is . Element does not float , And it will show where it appears in the text .
left Element floating to the left
right The element floats to the right
inherit Rules should be inherited from the parent element float The value of the property .
characteristic :
Detach from standard document flow , Get rid of the restrictions of block level elements and inline elements .
Auto attach , When it exceeds the travel width , The next sibling element automatically finds a gap to paste . When the height of the floating element exceeds the height of the previous element of the floating element , To automatically wrap .
Detach from standard document flow , But not out of the text stream . Encounter the text will appear surrounded effect , It's called word surround effect .
Contraction effect , If the parent element does not have a height set , The parent element will become content width and height , If there is no content , The parent element disappears .
Remove the floating :
The disadvantages of floating :
If the height of the parent element is not set , The parent element collapses high , The parent element disappears
Lead to unstable page structure

边栏推荐
- Yan reports an error: exception message: /bin/bash: line 0: fg: no job control
- Arduino基础知识
- Go memory model (version on May 31st, 2014)
- GKConstantNoiseSource
- 零代码 | 轻松实现数据仓库建模,搭建BI看板
- Blue Bridge Cup embedded Hal library USART_ TX
- Yarn报错:Exception message: /bin/bash: line 0: fg: no job control
- Status Notice ¶
- Apb2 and apb1 in stm32
- 盘点:144个免费学习网站,全网最全资源合集
猜你喜欢
随机推荐
MySQL Architecture Principle
Operation log of dbeaver
Judge whether the nixie tube is a common anode or a common cathode
吊打面试官的问题
蓝桥杯嵌入式-HAL库-SYSTICK
7. MapReduce custom sorting implementation
PyQt5快速开发与实战 4.13 菜单栏、工具栏与状态栏 and 4.14 QPrinter
CRM+零代码:轻松实现企业信息化
ctf技能树----文件上传
Nodejs:mongodb 简单模糊+分页查询实例
GKCheckerboardNoiseSource
STM32中的APB2和APB1
Andorid development III (intent)
Arduino Basics
6. MapReduce custom partition implementation
GKNoiseSource
低代码十问:一文讲透关于低代码的一切!
Yarn报错:Could not find any valid local directory for nmPrivate/
GKNoiseMap
GKNoiseSource








