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

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
主站蜘蛛池模板: 昭平县| 年辖:市辖区| 南木林县| 师宗县| 高邮市| 左权县| 陆川县| 新乐市| 夏津县| 左贡县| 柘城县| 陇西县| 太保市| 本溪| 海林市| 德兴市| 久治县| 会昌县| 上高县| 巫溪县| 城市| 吉木萨尔县| 东辽县| 昌邑市| 济阳县| 进贤县| 永和县| 娄烦县| 黔西| 资阳市| 千阳县| 札达县| 防城港市| 高州市| 武胜县| 榆树市| 安西县| 儋州市| 深水埗区| 宁远县| 崇明县|