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

Flex items with specific proportions

We can also specify specific proportions for each of the items in our flex layout. The following code shows how you could split the available space 25-50-25 between three flex items:

.flex-50 {
flex-basis: 50%;
}

.flex-25 {
flex-basis: 25%;
}
...

<div class="flex-container-row">
<amp-img class="flex-25" src="img/placeholder.png" layout="flex-item">
</amp-img>
<amp-img class="flex-50" src="img/placeholder.png" layout="flex-item">
</amp-img>
<amp-img class="flex-25" src="img/placeholder.png" layout="flex-item">
</amp-img>
</div>
Flex items filling a flex container proportionally
主站蜘蛛池模板: 淳化县| 隆回县| 永福县| 新泰市| 大洼县| 沙雅县| 玉田县| 邵阳市| 临沭县| 治多县| 连城县| 蕉岭县| 都安| 阿城市| 望谟县| 疏勒县| 仙居县| 普定县| 锡林郭勒盟| 临高县| 石景山区| 九龙城区| 南汇区| 灵石县| 鄂托克旗| 瑞金市| 仙居县| 昔阳县| 迭部县| 永仁县| 清新县| 青岛市| 泰宁县| 莲花县| 石景山区| 张家界市| 铜川市| 西贡区| 大方县| 邳州市| 礼泉县|