当前位置:网站首页>The role of Clearfix
The role of Clearfix
2022-07-27 13:21:00 【Sorry, this person doesn't exist】
clearfix
<!DOCTYPE html>
<html lang="ch">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style> .box1{
width: 200px; height: 200px; background-color: #bbffaa; } /* .box1::before{ content: ''; display: table; } */ .box2{
width: 100px; height: 100px; background-color: orange; margin-top: 100px; } /* clearfix This style can solve the problems of height collapse and outer margin overlap at the same time , When you encounter these problems again , Use it directly clearfix This class can */ .clearfix::before, .clearfix::after{
content: ''; display: table; clear: both; } </style>
</head>
<body>
<div class="box1">
<div class="box2"></div>
</div>
</body>
</html>
--clearfix This style can solve the problems of height collapse and outer margin overlap at the same time , When you encounter these problems again , Use it directly clearfix This class can
边栏推荐
- Wfuzz, a test tool that can blur everything that can be blurred
- Baoli food listed on Shanghai Stock Exchange: annual revenue of 1.578 billion, market value of 5.8 billion
- Distributed system architecture theory and components
- flinksql从Oracle同步数据到Doris,一共50几个字段,Oracle表中3000多万条
- Flinksql synchronizes data from Oracle to Doris, with a total of more than 50 fields and more than 30 million entries in Oracle tables
- 能说一说 Kotlin 中 lateinit 和 lazy 的区别吗?
- Xposed+fdex2 app shelling (black cat complains about app shelling)
- @Simple understanding and use of conditionalonproperty
- 元素的层级
- 500强企业如何提升研发效能?来看看行业专家怎么说!
猜你喜欢

初探基于OSG+OCC的CAD之任意多个子模型进行netgen以及gmsh网格划分

Seata 在蚂蚁国际银行业务的落地实践

面试考点:三种图的问题

能说一说 Kotlin 中 lateinit 和 lazy 的区别吗?

Gan: generate adversarial networks

Zhongke Lanxun fell 30% on the first day of listing: Huang Zhiqiang, 60, started a company with a market value of 7.7 billion

heap

程序员培训学习后好找工作吗

Isolation level

字节跳动的 Flink OLAP 作业调度和查询执行优化实践
随机推荐
Zhongke Lanxun fell 30% on the first day of listing: Huang Zhiqiang, 60, started a company with a market value of 7.7 billion
聊聊feign组件的一个重要类RefectiveFeign
Delay queue performance test
Why does the class annotated with @configuration generate cglib proxy?
Poj2594 treasure exploration [bipartite graph minimum path coverage] [Floyd]
内涵语录
What should I do if I can't see any tiles on SAP Fiori launchpad?
Do you really understand CMS garbage collector?
Perfect guide | how to use ODBC for agent free Oracle database monitoring?
Regular expressions remove spaces at both ends
feign的动态代理
JS true / false array conversion
Talk about one of the important classes of feign components, reactivefeign
Map interface
Open source project - taier1.2 release, new workflow, tenant binding simplification and other functions
Xshell7 can log in to MySQL virtual machine, but not mysql
Poj1273 drainage ditches [maximum flow] [SAP]
视频游戏沉迷行为研究综述
Amd adrenalin 22.7.1 driver update: double the performance of OpenGL and support Microsoft win11 22h2 system
clearfix的作用