我正在将我的HTML页面转换为AMP页面.我见过测试网址https://validator.ampproject.org/#.此页面由AMP验证.
但是当我使用外部Css时.
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css">
Run Code Online (Sandbox Code Playgroud)
然后它会失败.
那我怎么能访问materialize css文件.因为我在我的网站上使用Materialise Ui框架.
但我也读过
<style amp-custom> </style>
Run Code Online (Sandbox Code Playgroud)
SO AMP验证页面建议包括amp-custom中的内联css.但实现css是如此之久.它会破坏一些移动浏览器.因为https://github.com/ampproject/amphtml/issues/4555
如果有人有一些想法,请分享.