AMP浏览器支持吗? [英] AMP browser support?

查看:131
本文介绍了AMP浏览器支持吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

考虑到AMP规范,考虑到CSS变量依赖于自定义样式元素,这意味着当前浏览器的支持范围很窄.请参阅:我可以使用参考

Looking at the AMP spec, given the reliance on CSS variables to custom style elements, this means current browser support is narrow. See: Can I use reference

我猜想非自定义样式会出现优美的退路",因为不了解CSS变量的浏览器只会忽略该CSS.

I'm guessing there is a 'graceful fallback' to non custom styled, since browsers not understanding the CSS variables will just ignore that CSS.

是否有AMP的浏览器兼容性/支持列表?

Is there a browser compatibility/support matrix for AMP?

推荐答案

浏览器支持

通常,我们支持2种最新版本的主流浏览器,例如Chrome,Firefox,Edge,Safari和Opera.我们支持这些浏览器的台式机,手机,平板电脑和网络视图版本.

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.

除了核心AMP库和内置元素应该针对非常广泛的浏览器支持外,我们还接受针对市场份额超过1%的所有浏览器的修复程序.

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.

尤其是,我们尝试维护它可能并不完美,但没有损坏"-对Android 4.0系统浏览器和手机上的Chrome 28+的支持.

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.

来自 DEVELOPING.md#supported-browsers

已填充:使用CSS自定义属性(又称CSS变量):

The use of CSS custom properties (aka CSS Variables) is polyfilled:

更复杂和嵌套的AMP HTML组件……可以使用一组明确定义的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浏览器支持吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆