- AMP:Building Accelerated Mobile Pages
- Ruadhan O'Donoghue
- 109字
- 2021-07-08 10:04:10
Using custom CSS in AMP pages
We have seen that CSS is a key part of layout and design in AMP, as it is in HTML. In fact, AMP components come with built-in, default styles that are defined in a CSS file, amp.css, that's automatically included by the AMP library. For custom CSS styling in your AMP pages, there are restrictions on what you can do. You should already know that:
- All styles must be defined in the <head> of the document; no in-line styles
- A maximum of 50 KB of CSS is permitted
- External stylesheets can't be used
There are also some further restrictions you should be aware of:

推薦閱讀
- 小程序實戰視頻課:微信小程序開發全案精講
- Android和PHP開發最佳實踐(第2版)
- Debian 7:System Administration Best Practices
- Python零基礎快樂學習之旅(K12實戰訓練)
- MySQL數據庫管理與開發實踐教程 (清華電腦學堂)
- JavaScript by Example
- Visual C#.NET程序設計
- Spring Boot+Vue全棧開發實戰
- Java設計模式深入研究
- Flink入門與實戰
- Web前端測試與集成:Jasmine/Selenium/Protractor/Jenkins的最佳實踐
- 創新工場講AI課:從知識到實踐
- SQL Server 2014數據庫設計與開發教程(微課版)
- 微信小程序開發圖解案例教程:附精講視頻(第3版)
- Java項目驅動開發教程