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

推薦閱讀
- Learning Microsoft Windows Server 2012 Dynamic Access Control
- C++ Builder 6.0下OpenGL編程技術(shù)
- Learning SAP Analytics Cloud
- Unity 5 for Android Essentials
- HTML5秘籍(第2版)
- Java 9 Programming By Example
- 算法圖解
- 超簡(jiǎn)單:用Python讓Excel飛起來(實(shí)戰(zhàn)150例)
- Hacking Android
- C語言程序設(shè)計(jì)
- Java程序設(shè)計(jì)教程
- 基于MATLAB的控制系統(tǒng)仿真及應(yīng)用
- Visual FoxPro數(shù)據(jù)庫程序設(shè)計(jì)
- Go語言Hyperledger區(qū)塊鏈開發(fā)實(shí)戰(zhàn)
- 新手學(xué)Visual C