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

推薦閱讀
- 從零開始構建企業級RAG系統
- Visual C++串口通信開發入門與編程實踐
- Rake Task Management Essentials
- 算法基礎:打開程序設計之門
- 實用防銹油配方與制備200例
- FFmpeg入門詳解:音視頻原理及應用
- HTML5+CSS3網頁設計
- 學Python也可以這么有趣
- R大數據分析實用指南
- Windows內核編程
- OpenCV with Python By Example
- Instant Debian:Build a Web Server
- 智能手機故障檢測與維修從入門到精通
- Learning JavaScript Data Structures and Algorithms(Second Edition)
- Python網絡爬蟲實例教程(視頻講解版)