官术网_书友最值得收藏!

Full width flex item container

If you want the parent container to stretch to the full width of the page, you can omit a width and height value for the parent, but you will need to provide a height for the flex-item children:

.flex-container-row {
display: flex;
flex-direction: row;
}
...

<div class="flex-container-row">
<amp-img src="img/placeholder.png" layout="flex-item" height="200">
</amp-img>
<amp-img src="img/placeholder.png" layout="flex-item" height="100">
</amp-img>
</div>
Full width flex parent with fixed height flex item children
主站蜘蛛池模板: 五华县| 海阳市| 苏尼特右旗| 德安县| 广安市| 冕宁县| 无为县| 河西区| 连平县| 扎赉特旗| 贡觉县| 若尔盖县| 高碑店市| 松潘县| 嘉定区| 阿勒泰市| 重庆市| 三亚市| 西城区| 洞口县| 新宾| 青岛市| 澳门| 德州市| 涡阳县| 麦盖提县| 民权县| 微博| 沅陵县| 博野县| 海阳市| 钟祥市| 平江县| 自治县| 通海县| 阿瓦提县| 景洪市| 同心县| 景泰县| 临沂市| 襄樊市|