我再需要您一次帮助:D
在我的网站上,我有:

<a href="test1.mp3" target="iframe">test 1</a>
<a href="test2.mp3" target="iframe">test 2</a>
<a href="test3.mp3" target="iframe">test 3</a>


当我点击url时,它会使用<video>标签在此iframe上打开这首歌。
可以编辑视频按钮吗?我的意思是,例如播放/暂停按钮的样式。
我知道这是可能的,但我不知道每个元素的ID都可以编辑它:D

有人可以帮我吗?

非常感谢。

最佳答案

您可以尝试以下方法:

这是原始网站:

http://nunzioweb.com/misc/movies/iframe-embed_example.htm

<!DOCTYPE HTML>
<html>
<head>
<meta name="google" value="notranslate" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Dog Smoking</title>

<style type="text/css">
body {
padding-top:0;
padding-bottom:0;
padding-left:0;
padding-right:0;
margin-top:0;
margin-bottom:0;
margin-left:0;
margin-right:0;
}
</style>

<link href="Dogsmoke_embed.css" rel="stylesheet" type="text/css">
</head>
<body>
<iframe class="tscplayer_inline" name="tsc_player" src="Dogsmoke_player.html" scrolling="no" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</body>
</html>


如果您不希望这样做,可以尝试以下操作:
play iframe video on click a link javascript

10-06 04:21
查看更多