html - 当我缩小页面时,部分标签一直重叠
问题描述
我不知道如何让我的部分停止在 HTML/CSS 中重叠。我尝试在 CCS 中使用边距和填充以及浮动,但它们不起作用。
#projects{
display: block;
height: 100vh;
width: 100vw;
margin: 20px 20px 20px 20px;
padding: 20px 20px 20px 20px;
}
#education{
display: block;
height: 100vh;
width: 100vw;
margin: 20px 20px 20px 20px;
padding: 20px 20px 20px 20px;
}
<body>
<section id="projects">
<!--there's a lot of irrelevant code in the middle here-->
</section>
<section id="education">
<!--there's a lot of irrelevant code in the middle here-->
</section>
</body>
解决方案
推荐阅读
- php - 如何在 Linux 的 Visual Studio 代码上运行 php 文件
- c++ - 如何通过 CNG 从证书存储中将 EC 私钥导出为 PKCS#1 或 PKCS#8 格式?
- python - 使用 Python 将 TIF 图像转换为 jpg 时出错
- c - 我正在尝试永久更改字符串,但这段代码没有这样做
- java - 在 Android Q 中从外部存储访问照片
- java - 如何修复错误错误:找不到符号导入 com.stripe.android.TokenCallback;
- django-viewflow - 如何使用视图流中的编辑功能开始后退一步
- r - 为什么 boxplot() 会影响项目符号索引大小?
- jquery - Jquery Selectric 未加载 MVC 部分视图
- html - 在css属性实际上没有改变的html项目上,css转换效果的等价物是什么?