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

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
主站蜘蛛池模板: 报价| 康平县| 庆阳市| 五指山市| 都匀市| 神农架林区| 米脂县| 广南县| 库伦旗| 基隆市| 壤塘县| 集安市| 乌兰县| 天峨县| 巫溪县| 平江县| 新闻| 铜陵市| 墨玉县| 海门市| 咸丰县| 静宁县| 曲麻莱县| 延安市| 娱乐| 海林市| 抚宁县| 离岛区| 安陆市| 乌拉特中旗| 平山县| 错那县| 荣成市| 桃园市| 淄博市| 泌阳县| 沙田区| 灵璧县| 博爱县| 砀山县| 咸阳市|