如何使用html5嵌入视频? [英] How do I embed a video using html5?
本文介绍了如何使用html5嵌入视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,我正在建立一个网页,我还有其他所有东西,但是我不知道如何使用html5嵌入视频?这对我的网站非常重要,因此非常感谢您的帮助.
Hello I'm building a webpage I've got everything else but i don't know how to embed a video using html5? This is very important in my website so help would be very appreciated.
推荐答案
<video id="myMovie" width="640" height="360" poster="video.png" >
<source src="20140810_131405.mp4">
</video>
使用视频标签.海报属性是缩略图.显然,源链接到实际的视频文件.
using the video tag. The poster attribute is the thumbnail pic. Obviously the source links to the actual video file.
这篇关于如何使用html5嵌入视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文