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

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
主站蜘蛛池模板: 霍城县| 房产| 宿迁市| 凉山| 台州市| 汝州市| 湖北省| 蛟河市| 邯郸市| 定日县| 蓬溪县| 临朐县| 桑植县| 新邵县| 桐城市| 黔南| 新建县| 四子王旗| 边坝县| 威海市| 越西县| 万荣县| 海林市| 蒙自县| 武宁县| 阳东县| 临猗县| 三明市| 兴业县| 札达县| 崇文区| 故城县| 延吉市| 大邑县| 乐都县| 东光县| 新疆| 会东县| 右玉县| 潞西市| 建瓯市|