如何在新标签页中播放视频? [英] How to play video in a new tab?

查看:183
本文介绍了如何在新标签页中播放视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是网络开发的初学者,我的网页中有视频文件.

i am beginner in web developing i have video file in my web page.

我想在新标签页中播放该视频.

I want to play that video in a new tab.

我将target ="_ blank"属性赋予了我的视频代码,但仍然无法正常工作 还有其他方法可以在新标签页中播放视频吗?

I gave the target="_blank" attribute into my video tag but it still not working there is any other way to play videos in a new tab?

请帮助我

谢谢!

推荐答案

您尝试这种方式吗?

<!DOCTYPE html>
<html>
<body>

<h2>Click the Link to Play the Object</h2>

<a href="http://www.w3schools.com/html/intro.swf" target="_blank">Play a video file</a> 

</body>
</html>

或者您可以使用以下代码创建空白页:

Or you can create a blank page with following code:

<!DOCTYPE html>
<html>
<body>    
    <video width="90%" height="90%" controls>
      <source src="movie.mp4" type="video/mp4">
      <source src="movie.ogg" type="video/ogg">
      Your browser does not support the video tag.
    </video>
</body>
</html>

然后链接到该页面:

<a href="video_page" target_="blank">See the video</a>

这篇关于如何在新标签页中播放视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆