如果您查看 facebook.com/paper,您会发现几个 <video><img/></video>
.
我想知道这是否是语义/SEO 友好的后备 video
标签或者它只是对旧浏览器的黑客攻击。 poster
属性对于现代浏览器来说还不够吗?这是移动设备黑客攻击吗?
最佳答案
除了 track
/source
元素,内容为video
适用于不支持 video
的用户代理.
Content may be provided inside the
video
element. User agents should not show this content to the user; it is intended for older Web browsers which do not supportvideo
, so that legacy video plugins can be tried, or to show text to the users of these older browsers informing them of how to access the video contents.
因此支持用户代理(即现代浏览器)应该忽略这一点。
关于html5-video - VIDEO 标签内的 IMG 标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22771440/