- 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>
推薦閱讀
- Deploying Node.js
- Selenium Design Patterns and Best Practices
- C語(yǔ)言實(shí)驗(yàn)指導(dǎo)及習(xí)題解析
- HoloLens與混合現(xiàn)實(shí)開(kāi)發(fā)
- Emotional Intelligence for IT Professionals
- UML軟件建模
- Android編程權(quán)威指南(第4版)
- 深入理解Kafka:核心設(shè)計(jì)與實(shí)踐原理
- Google Adsense優(yōu)化實(shí)戰(zhàn)
- Building a Media Center with Raspberry Pi
- Python趣味創(chuàng)意編程
- 微信公眾平臺(tái)開(kāi)發(fā)最佳實(shí)踐
- Spring MVC Blueprints
- 現(xiàn)代JavaScript編程:經(jīng)典范例與實(shí)踐技巧
- 威脅建模:設(shè)計(jì)和交付更安全的軟件