AMP

AMP 组件目录

AMP HTML 库由一个基本的运行时组成,它将 AMP 的核心功能带到您的页面。 如果您想添加其他功能,可以使用一个或多个即用型 AMP 组件。 它们分为

内置 包含在基本库中的组件,例如 amp-imgamp-pixel
扩展 基本库的扩展,必须作为自定义元素显式包含在文档中。
实验性 已发布但尚未准备好广泛使用的组件。

精选组件

按类别筛选

动态内容

amp-bind
Allows elements to mutate in response to user actions or data...
amp-form
Allows you to create forms to submit input fields in an AMP document.
amp-img
Replaces the HTML5 img tag.
amp-layout
A generic, multi-purpose container element that brings AMP's...
amp-mraid
Supports interaction with the MRAID host API within Ad webviews in...
amp-mustache
Allows rendering of Mustache templates.
amp-pixel
A tracking pixel to count page views.
amp-smartlinks
Run Narrativ's Linkmate process inside your AMP page

媒体

amp-anim
Manages an animated image, typically a GIF.
amp-audio
Replaces the HTML5 audio tag.
amp-video
Replaces the HTML5 video tag.
amp-youtube
Displays a YouTube video.

展示

amp-animation
定义和显示动画。
amp-fit-text
扩大或缩小字体大小,以使内容适应给定空间。
amp-font
触发和监控 AMP 页面上自定义字体的加载。