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

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
主站蜘蛛池模板: 永善县| 永城市| 元江| 弥渡县| 白玉县| 平果县| 达尔| 建昌县| 泰宁县| 金乡县| 上思县| 吴川市| 东方市| 新龙县| 临沂市| 宁阳县| 恩施市| 大埔区| 博湖县| 阆中市| 梁河县| 珠海市| 招远市| 班戈县| 平安县| 衡东县| 香河县| 康乐县| 陇西县| 甘德县| 阿克陶县| 宁河县| 楚雄市| 成安县| 若尔盖县| 丰城市| 丁青县| 高淳县| 胶南市| 康定县| 东乡族自治县|