如何在html5中实现标签 [英] How to implement tag in html5
本文介绍了如何在html5中实现标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试实施视频标签,并且我想使用跟踪.但是,因为没有浏览器支持此track标记,所以我将如何实现它,好像我无法在其浏览器上使用一样,我将如何检查它是否正常运行.
I am trying to implement video tag, and i want to use track. But as no browser support this track tag , so how will i implement it, as if iy will not working on my browser , how will i check whether it is working correctly or not.
推荐答案
<video width="320" height="240" controls="controls">
<source src="forrest_gump.mp4" type="video/mp4" />
<source src="forrest_gump.ogg" type="video/ogg" />
<track src="subtitles_en.vtt" kind="subtitles" srclang="en">
label="English">
<track src="subtitles_no.vtt" kind="subtitles" srclang="no">
label="Norwegian">
</track></track></video>
关于浏览器支持,Mozilla开发人员网络声称Chrome 16提供了部分支持. ^ ]
As for browser support, the Mozilla Developer Network claims there is partial support in Chrome 16. https://developer.mozilla.org/en-US/docs/HTML/HTML_Elements/track?redirectlocale=en-US&redirectslug=HTML%2FElement%2Ftrack[^]
这篇关于如何在html5中实现标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文