- AMP:Building Accelerated Mobile Pages
- Ruadhan O'Donoghue
- 58字
- 2021-07-08 10:04:09
Fallbacks
The fallback attribute is used to indicate that an element should be used instead of a parent element when the parent is not supported. We'll be covering the amp-video component in more detail later, but as an example, you could add a fallback message for browsers that don't support HTML5 video like this:
<amp-video width=640 height=380 src="cats.mp4">
<div fallback>
<p>HTML5 video not supported</p>
</div>
</amp-video>
推薦閱讀
- Learn TypeScript 3 by Building Web Applications
- JSP網(wǎng)絡編程(學習筆記)
- Building Modern Web Applications Using Angular
- Leap Motion Development Essentials
- Learning ArcGIS Pro 2
- R語言數(shù)據(jù)可視化之美:專業(yè)圖表繪制指南
- TypeScript圖形渲染實戰(zhàn):基于WebGL的3D架構與實現(xiàn)
- Getting Started with SQL Server 2012 Cube Development
- Getting Started with Python Data Analysis
- Spring+Spring MVC+MyBatis整合開發(fā)實戰(zhàn)
- HTML5+CSS3 Web前端開發(fā)技術(第2版)
- PhoneGap 4 Mobile Application Development Cookbook
- JavaScript悟道
- TypeScript圖形渲染實戰(zhàn):2D架構設計與實現(xiàn)
- 虛擬現(xiàn)實建模與編程(SketchUp+OSG開發(fā)技術)