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

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
主站蜘蛛池模板: 柞水县| 环江| 田阳县| 黑龙江省| 望城县| 柘荣县| 南昌市| 南投市| 泗水县| 衡水市| 江北区| 金坛市| 宣化县| 洪泽县| 中宁县| 瑞金市| 河东区| 石门县| 和林格尔县| 青龙| 汉寿县| 布尔津县| 丹东市| 星子县| 渭源县| 凌海市| 抚宁县| 东丰县| 迁安市| 涿州市| 金坛市| 乌拉特中旗| 蒙城县| 临澧县| 英德市| 剑川县| 当涂县| 勃利县| 多伦县| 定州市| 子长县|