css - 使我的 flex 列对所有屏幕都有响应,html 文本重叠到下一部分并且列高似乎更短?
问题描述
嘿,伙计们,我一直在我的投资组合网站上工作,它可以响应移动设备、我的 Macbook Air 和我的两个桌面显示器。但由于某种原因,在我的联想笔记本电脑上,列似乎更短,并且文本超出了列的长度。我是否需要另一个媒体查询,是否需要在我的 css 中修复某些内容?这是 我的问题的屏幕截图
这是代码,媒体查询的最小宽度为 700px
#skills .container {
max-width: 1200px;
text-align: center;
background: #fff;
border-radius: 20px;
height: 70vh;
box-shadow: 0px 10px 30px rgba(57,56, 61, 0.205);
display: flex;
/* -webkit-box-flex: 1;
flex-grow: 1; */
}
#skills .container .column {
display: block;
padding-left: 15px;
padding-right: 15px;
flex-basis: 33%;
border-bottom: 0px solid #e2e2e2;
border-right: 1px solid #e2e2e2;
/* margin-left: 10px;
margin-right: 10px; */
}
#skills .container .column:last-child {
border-right: none;
border-bottom: none;
}
#skills .container .column #skills-icon{
margin: 20px 20px;
font-size: 35px;
color: #6666ff;
}
#skills .container .card p {
font-family: 'Ubuntu';
}
解决方案
你的问题是height: 70vh;
你的#skills .container
选择器。
您的笔记本电脑屏幕可能具有较低的垂直分辨率,其中 70% 不足以显示您的技能容器的内容。
尝试将其更改为min-height: 70vh;
,这样如果内容需要,它可以更高。
推荐阅读
- android - 如何使用片段内的实时数据更新 Recycler 视图?
- python - 轮廓和水平的问题
- nlog - 当应用程序通过任务计划程序运行时,NLog CurrentDir 在 C:\Windows\SysWOW64 内创建文件
- reference - 如何将引用元组转换为元组引用?
- android - 如何运行 Android Automotive 脚本
- javascript - 拖动子级时如何避免拖动父级?
- c# - ModelState 在 ASP.NET.CORE 2.2 Web Api 中始终有效
- node.js - 如何修复“不同的 NODE_MODULE_VERSION”?
- neo4j - 投影图 neo4j 的度中心性。创建投影图的最佳方法
- javascript - 结束日期的日期验证,结束日期必须大于开始日期但使用不同的格式