- AMP:Building Accelerated Mobile Pages
- Ruadhan O'Donoghue
- 61字
- 2021-07-08 10:04:08
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
推薦閱讀
- Learning C# by Developing Games with Unity 2020
- Mastering phpMyAdmin 3.4 for Effective MySQL Management
- Raspberry Pi Networking Cookbook(Second Edition)
- Python Deep Learning
- Designing Hyper-V Solutions
- Neo4j Essentials
- 數據結構案例教程(C/C++版)
- PySpark Cookbook
- 基于SpringBoot實現:Java分布式中間件開發入門與實戰
- 現代C++編程實戰:132個核心技巧示例(原書第2版)
- Python趣味編程與精彩實例
- Moodle 3 Administration(Third Edition)
- Julia High Performance(Second Edition)
- OpenCV 3.0 Computer Vision with Java
- Neo4j 3.x入門經典