【发布时间】:2021-07-17 13:38:15
【问题描述】:
我的最小宽度没有覆盖我的正常 CSS?我以前没有遇到过这个问题,但我似乎无法让它工作。使用“!important”也无济于事。
这是我的代码 -
.slant-container {
.test-container {
.services-content {
-webkit-box-align: center;
align-items: center;
text-align: left;
justify-content: space-around;
display: -webkit-box;
display: flex;
flex-wrap: wrap;
.left-hero {
width: 100%;
.hero-p {
width: 100%;
}
}
}
}
}
@media screen and (min-width: 841px) {
.slant-container {
.test-container {
.services-content {
.left-hero {
width: 50%;
.hero-p {
padding-bottom: 3rem;
}
}
}
}
}
}
【问题讨论】:
标签: css sass media-queries