如何将视频标题放在html中? [英] How to put the video title in html?

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

问题描述

我有一个 html 格式的视频(格式为 webm)并且它可以工作,但是,我想在 html 中显示视频标题(不写).

I have a video in html (the format is webm) and it works but, I want to appear the video title in the html (without writing it).

PS:为了放置视频,我使用了 Media Element.

PS: To put the video, I used Media Element.

推荐答案

我建议你使用 JavaScript.您应该阅读 html 元素的属性 以获取视频的标题.为此,请在此处阅读更多相关信息.你也可以尝试使用 jQuery 和它的方法 .attr().

I suggest you to use JavaScript. You should read attributes of html element to get title of your video. To do that, read more about it here. You can also try to use jQuery and it's method called .attr().

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

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