当前位置:网站首页>同时解决高度塌陷和外边距重叠问题
同时解决高度塌陷和外边距重叠问题
2022-04-23 06:05:00 【旺财2】
/* clearfix 这个样式可以同时解决高度塌陷和外边距重叠的问题,
当你在遇到这些问题时,直接使用clearfix这个类即可 */
.clearfix::before,
.clearfix::after{
content: '';
display: table;
clear: both;
}
使用:
<div class="box1 clearfix">
<div class="box2"></div>
</div>
版权声明
本文为[旺财2]所创,转载请带上原文链接,感谢
https://blog.csdn.net/wdyliuxingfeiyang/article/details/118858685
边栏推荐
猜你喜欢
Information:2021/9/29 10:01 - Build completed with 1 error and 0 warnings in 11s 30ms Error异常处理
Introduction to common APIs for EBFP programming
Dolphinscheduler调度sql任务建表时The query did not generate a result set异常解决
专用窗口函数rank, dense_rank, row_number
Relabel of Prometheus_ Configs and metric_ relabel_ Configs explanation and usage examples
Chaos帶你快速上手混沌工程
High performance gateway for interconnection between VPC and IDC based on dpdk
Introduction to RDMA network
实践使用PolarDB和ECS搭建门户网站
oracle undo使用率高问题处理
随机推荐
RAC环境数据库节点参数设置不当导致监听无法连接问题排查
TC ebpf practice
Exception record-14
Dolphinscheduler源码包src.tar.gz解压问题
异常记录-8
oracle库恢复数据
Oracle和mysql批量查询用户下所有表名和表名注释
关于我
异常记录-11
Prometheus cortex Architecture Overview (horizontally scalable, highly available, multi tenant, long-term storage)
Abnormal record-21
Build a cloud blog based on ECS (polite experience)
Dolphinscheduler调度sql任务建表时The query did not generate a result set异常解决
oracle 修改默认临时表空间
冬季实战营动手实战-上云必备环境准备,动手实操快速搭建LAMP环境 领鼠标 云小宝 背包 无影
阿里矢量库的图标使用教程(在线,下载)
异常记录-9
Practice using polardb and ECs to build portal websites
Chaos帶你快速上手混沌工程
Abnormal record-17