我怎样才能使用可重复的歌曲? [英] How can I use repeatable song?
本文介绍了我怎样才能使用可重复的歌曲?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用此代码播放歌曲:
< object id = objPlayMusic data = 1.mp3 >
< / object >
但我想,这首歌重演了,我怎么能这样做?
谢谢
解决方案
如果您使用的是HTML5,这将有效:
< audio 控件 = 控件 loop = loop >
< source < span class =code-attribute> src = horse.ogg type = audio / ogg / >
< source src = horse.mp3 type = audio / mpeg / >
您的浏览器不支持audio元素。
< / audio >
I use this code for playing the song:
<object id="objPlayMusic" data = "1.mp3" >
</object>
but I want , the song repeated, How can I do this?
Thanks
解决方案
If you are using HTML5, this would work:
<audio controls="controls" loop="loop"> <source src="horse.ogg" type="audio/ogg" /> <source src="horse.mp3" type="audio/mpeg" /> Your browser does not support the audio element. </audio>
这篇关于我怎样才能使用可重复的歌曲?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文