- AMP:Building Accelerated Mobile Pages
- Ruadhan O'Donoghue
- 99字
- 2021-07-08 10:04:05
The layout attribute
The layout attribute in AMP gives the developer a very powerful, per-element tool for declaring how elements should be displayed on the page. It offers a convenient way to implement common layout patterns that would otherwise require complex CSS to build. This makes the layout attribute extremely useful, especially considering AMP's 50 KB CSS limitation.
The layout attribute can be applied to any AMP element (but not regular HTML elements), and can take the following values:

If no value is supplied for the layout attribute of a component, its layout will be inferred as follows:

推薦閱讀
- 精通Scrapy網(wǎng)絡(luò)爬蟲
- 網(wǎng)店設(shè)計(jì)看這本就夠了
- 零基礎(chǔ)學(xué)Java程序設(shè)計(jì)
- Visual C++數(shù)字圖像處理技術(shù)詳解
- Web Development with MongoDB and Node(Third Edition)
- Tableau 10 Bootcamp
- Android驅(qū)動(dòng)開發(fā)權(quán)威指南
- Android Development Tools for Eclipse
- Learning iOS Security
- Azure for Architects
- Instant AutoIt Scripting
- Real-time Web Application Development using Vert.x 2.0
- C#程序開發(fā)教程
- Activiti權(quán)威指南
- 零基礎(chǔ)學(xué)C++