html5音频播放器不播放 [英] html5 audio player doesnt play
问题描述
i我正在使用html5音频播放器。但它不起作用。为什么?我的代码如下
<< pre lang =xml> head runat =server>
< title>< / title>
< script type =text / javascript >
Hi,
i am using html5 audio player.but it doesnt working.why?my code as below
<<pre lang="xml">head runat="server">
<title></title>
<script type="text/javascript">
function check() {
document.getElementById("test").innerHTML = '<span class="prego"><audio src="siju.wav" preload="auto" controls></audio></span>'
}
< / script>
< / head>
< body onload =check()>
< form id =form1runat =server>
< div id =teststyle =position:absolute; top:0px; left:0px;>
< / div>
< / form>
< / body>
< / html> < br $>
谢谢
</script>
</head>
<body onload="check()">
<form id="form1" runat="server">
<div id="test" style="position :absolute ;top:0px;left :0px;">
</div>
</form>
</body>
</html>
Thanks
推荐答案
html 5 audio
不要使用相对路径
直接给出文件名并保持文件相同html文件所在的文件夹
html 5 audio
dont use relative path
give filename directly and keep file in the same folder where the html file is
这篇关于html5音频播放器不播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!