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.

Daha fazla yardıma mı ihtiyacınız var?

Bu belgeyi defalarca okudunuz ama tüm sorularınıza tatmin edici bir yanıt bulamadınız mı? Belki başka kişiler de bu şekilde hissetmiştir: Stack Overflow'dan onlara ulaşın.

Stack Overflow'a git
Bir hata veya eksik bir özellik mi buldunuz?

AMP projesi, katılımınızı ve katkılarınızı güçlü bir şekilde teşvik ediyor! Açık kaynak topluluğumuzun devamlı bir katılımcısı olacağınızı umuyoruz ancak özel olarak ilgilendiğiniz konularla ilgili tek seferlik katkıları da memnuniyetle karşılıyoruz.

GitHub'a git