借助 AMP 的组件系统,您可以既轻松又快速地在报道中构建高效的自适应功能。AMP HTML 库提供的 AMP 组件分为以下 3 类:
内置:此类组件是指 AMP JavaScript 基础库中包括的组件(在 <head> 标记中指定),例如 amp-img 和 amp-pixel。这些组件可直接用于 AMP 文档中。
<head>
amp-img
amp-pixel
扩展:此类组件是指相对于基础库而言的扩展功能,必须作为自定义元素明确包括在文档中。自定义元素需要添加到 <head> 部分中的具体脚本(例如 `
We use cookies to understand how you use our site and to improve your experience. By continuing to use our site, you accept our use of cookies and privacy policy.