【发布时间】:2017-03-21 16:19:02
【问题描述】:
我正在使用 flexbox/flex 来使内容居中。但是我想在小于 768px 的屏幕上删除 flex 属性
css
.row-eq-height {
min-height: 400px;
display: flex;
}
.row-eq-height .col-md-6,
.row-eq-height .col-md-12 {
flex: 1;
display: flex;
align-items: center;
}
.section-content {
position: relative;
flex: 1;
text-align: center;
}
@media screen and (max-width: 768px) {
...
我不确定是什么 css 取消了 flex 以便我可以以不同的方式定位我的元素
【问题讨论】: