当前位置:网站首页>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
边栏推荐
- PAT乙级 1109 擅长C(详解)
- Four characteristics of transactions (acid):
- Poj2446 chessboard [maximum matching of bipartite graph]
- Xianghe meat cake in memory
- Why do you need foreign keys?
- What should I do if I can't see any tiles on SAP Fiori launchpad?
- 592. 分数加减运算 : 表达式计算入门题
- 最新版泛域名证书申请
- Poj1548 robots [bipartite graph minimum path coverage]
- Distributed system architecture theory and components
猜你喜欢

分布式系统架构理论与组件

Multi activity disaster recovery construction after 713 failure of station B | takintalks share

heap

@Simple use of conditional

湖仓一体电商项目背景与架构介绍及基础环境准备

Baoli food listed on Shanghai Stock Exchange: annual revenue of 1.578 billion, market value of 5.8 billion

Overview of static inner classes and non static inner classes

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

51:第五章:开发admin管理服务:4:开发【新增admin账号,接口】;(只开发了【用户名+密码的,方式】;【@T…】注解控制事务;设置cookie时,是否需要使用URLEncoder去编码;)

@Simple understanding and use of conditionalonproperty
随机推荐
@Simple understanding and use of conditionalonproperty
写出一个程序,接受一个有字母和数字以及空格组成的字符串,和一个字符,然后输出输入字符串中含有该字符的个数。不区分大小写。
Application for the latest version of Pan domain name certificate
计算字符串最后一个单词的长度,单词以空格隔开。
AMD Adrenalin 22.7.1 驱动更新:OpenGL 性能翻倍,支持微软 Win11 22H2 系统
Open source project - taier1.2 release, new workflow, tenant binding simplification and other functions
程序员培训学习后好找工作吗
Minimally invasive brain science broke the listing: the company's market value is HK $14.3 billion, and minimally invasive medical is the major shareholder
W3School导航栏练习
二分法查询数组中的值
开源项目丨Taier1.2版本发布,新增工作流、租户绑定简化等多项功能
Plus SBOM: assembly line BOM pbom
数据库HTAP能力强弱怎么看
Poj2594 treasure exploration [bipartite graph minimum path coverage] [Floyd]
实现新增加硬盘的磁盘分区和文件系统挂载
Background and framework introduction and basic environment preparation of hucang integrated e-commerce project
Feign client automatic assembly of three clients
MTK6765编译环境搭建
一款能模糊的地方都能模糊的测试工具——Wfuzz
Distributed system architecture theory and components