【发布时间】:2023-03-24 09:17:01
【问题描述】:
我有一个模块.m-standout,它使用display:flex,由标题、子文本和图像组成。基本上我想使用 flex 来定位标题和子文本,然后让图像在下面占据 100% 的宽度,但目前图像占据了第三列。谁能建议我如何防止图像使用 flex,我正在尝试flex:0 和flex:none 之类的东西,但没有任何乐趣。
CSS
.m-standout {
display: flex;
.standout-heading {
font-size: 34px;
width: 31.28834%;
align-self: center;
}
.standout-desc {
width: 52.76074%;
align-self: center;
}
.standout-image {
}
}
Codepen: http://codepen.io/styler/pen/gLaCw
【问题讨论】: