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

推薦閱讀
- PWA入門與實(shí)踐
- Django:Web Development with Python
- NativeScript for Angular Mobile Development
- Mastering Predictive Analytics with Python
- Mastering Ext JS
- R Deep Learning Cookbook
- 深入RabbitMQ
- Creating Stunning Dashboards with QlikView
- Lighttpd源碼分析
- NGINX Cookbook
- Extreme C
- MySQL入門很輕松(微課超值版)
- 深入理解BootLoader
- 遠(yuǎn)方:兩位持續(xù)創(chuàng)業(yè)者的點(diǎn)滴思考
- 數(shù)據(jù)分析與挖掘算法:Python實(shí)戰(zhàn)