【发布时间】:2020-07-25 06:19:09
【问题描述】:
我最近对技能部分中的容器和列进行了更改。当我在我的 I-phone XR 上查看网站时,容器和列都被压扁了。它最初不是这样的,但我确实做了改变,现在如果它在任何宽度上查看:高于 375px 它只是被压扁而不是堆叠在一起。How it looks on my phone. This is how I wanted to look at higher mobile Widths.
#skills {
justify-content: space-around;
height: 30vh;
min-height: 70vh;
background: #090a0f;
}
#skills h2{
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
padding-top: 30px;
color: #090a0f;
font-weight: bold;
}
#skills h6 {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
color: #6666ff;
font-weight: bold;
}
#skills p {
font-size: 16px;
font-family: 'Ubuntu';
font-weight: 300;
}
#skills .content-wrap .container {
max-width: 1200px;
/* height: 0vh !important; */
min-height: 80vh;
text-align: center;
background: #fff;
border-radius: 20px;
height: 75vh;
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';
}
【问题讨论】:
标签: html css mobile flexbox grid