- 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
推薦閱讀
- Web程序設(shè)計(jì)及應(yīng)用
- 大學(xué)計(jì)算機(jī)基礎(chǔ)(第二版)
- Django+Vue.js商城項(xiàng)目實(shí)戰(zhàn)
- LabVIEW程序設(shè)計(jì)基礎(chǔ)與應(yīng)用
- Building Modern Web Applications Using Angular
- Oracle從新手到高手
- AWS Serverless架構(gòu):使用AWS從傳統(tǒng)部署方式向Serverless架構(gòu)遷移
- Twilio Best Practices
- Essential Angular
- Apache Mesos Essentials
- 大數(shù)據(jù)分析與應(yīng)用實(shí)戰(zhàn):統(tǒng)計(jì)機(jī)器學(xué)習(xí)之?dāng)?shù)據(jù)導(dǎo)向編程
- Linux Shell核心編程指南
- Frank Kane's Taming Big Data with Apache Spark and Python
- Spring+Spring MVC+MyBatis從零開始學(xué)
- Maven for Eclipse