AMP

amp-google-document-embed

Description

Displays a document file supported by Google Drive.

 

Required Scripts

<script async custom-element="amp-google-document-embed" src="https://cdn.ampproject.org/v0/amp-google-document-embed-0.1.js"></script>

Usage

The amp-google-document-embed component displays document files like Word documents, Excel spreadsheets, and PDFs.

Example:

<amp-google-document-embed
  src="https://www.example.com/document.pdf"
  width="800"
  height="600"
  layout="responsive"
>
</amp-google-document-embed>

Attributes

src

The URL of the document.

common attributes

This element includes common attributes extended to AMP components.

Validation

See amp-google-document-embed rules in the AMP validator specification.

Ti servono altre informazioni?

Hai letto questo documento decine di volte ma non risponde a tutte le tue domande? Forse ci sono altre persone col tuo stesso problema: entra in contatto con loro su Stack Overflow.

Vai a Stack Overflow
Hai trovato un bug o una funzione mancante?

Il progetto AMP invita tutti a partecipare e dare il proprio contributo! Ci auguriamo che tu possa partecipare regolarmente alla nostra community open source, ma saremo anche lieti di ricevere eventuali contributi una-tantum sulle questioni che ti interessano.

Vai a GitHub