- 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:

推薦閱讀
- Instant Testing with CasperJS
- Mastering Ember.js
- 營銷數據科學:用R和Python進行預測分析的建模技術
- Mastering Unity Shaders and Effects
- 從學徒到高手:汽車電路識圖、故障檢測與維修技能全圖解
- 嚴密系統設計:方法、趨勢與挑戰
- 大學計算機基礎(第2版)(微課版)
- Java網絡編程核心技術詳解(視頻微課版)
- Learning YARN
- Hands-On Nuxt.js Web Development
- Building Serverless Web Applications
- Zabbix Performance Tuning
- OpenCV 3 Blueprints
- React and React Native
- Microsoft XNA 4.0 Game Development Cookbook