gpt4 book ai didi

amp-html - AMP 浏览器支持?

转载 作者:行者123 更新时间:2023-12-03 11:27:38 28 4
gpt4 key购买 nike

查看 AMP 规范,鉴于自定义样式元素依赖于 CSS 变量,这意味着当前的浏览器支持范围很窄。见:Can I use reference

我猜非自定义样式有一个“优雅的回退”,因为不理解 CSS 变量的浏览器只会忽略该 CSS。

AMP 是否有浏览器兼容性/支持矩阵?

最佳答案

浏览器支持

In general we support the 2 latest versions of major browsers like Chrome, Firefox, Edge, Safari and Opera. We support desktop, phone, tablet and the web view version of these respective browsers.

Beyond that the core AMP library and builtin elements should aim for very wide browser support and we accept fixes for all browsers with market share greater than 1 percent.

In particular, we try to maintain "it might not be perfect but isn't broken"-support for the Android 4.0 system browser and Chrome 28+ on phones.


来自 amp faq
但是.. CSS 变量?
CSS 自定义属性(又名 CSS 变量)的使用是 聚酯纤维 :

AMP HTML components that are more complex and nested … may be styled with an explicitly defined set of CSS Custom Properties. These are propagated to any children elements that are dynamically created by the runtime, to achieve the desired style.


来自 spec/amp-html-components.md

关于amp-html - AMP 浏览器支持?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33076515/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com