AMP:Building Accelerated Mobile Pages
上QQ阅读APP看书,第一时间看更新

Laying out elements in AMP pages

In the last chapter we briefly saw how to fix validation errors with amp-img by adding layout="responsive" to the image element, but there wasn't much explanation about what was happening. When we added the layout attribute, we were tapping into AMP's powerful layout system.