Important: this documentation is not applicable to your currently selected format email!
amp-imgur
Description
Displays an Imgur post.
Required Scripts
<script async custom-element="amp-imgur" src="https://cdn.ampproject.org/v0/amp-imgur-0.1.js"></script>
Supported Layouts
Usage
This extension creates an iframe and displays an imgur post.
<amp-imgur data-imgur-id="f462IUj" layout="responsive" width="540" height="663" ></amp-imgur>
Attributes
data-imgur-id (required)
The id of the Imgur post.
a/
like a/ZF7NS3V
.
You can confirm this in the post's url. It should include a/
before the rest of the id, like on: https://imgur.com/a/ZF7NS3V
width (required)
The width of the Imgur post.
height (required)
The height of the Imgur post.
Common attributes
This element includes common attributes extended to AMP components.
Validation
See amp-imgur rules in the AMP validator specification.
Você já leu este documento várias vezes, mas ainda ficou com dúvidas sem respostas? Talvez outras pessoas pensem da mesma forma. Procure entrar em contato com elas no Stack Overflow.
Ir para o Stack Overflow Encontrou um bug ou sente falta de um recurso?The AMP project strongly encourages your participation and contributions! We hope you'll become an ongoing participant in our open source community but we also welcome one-off contributions for the issues you're particularly passionate about.
Ir para o GitHub