我知道<bgsound>
html不支持Mozilla,HTML背景声音元素<bgsound>
是将背景声音与页面相关联的Internet Explorer元素。
如何自动播放背景声音和对Mozilla的支持?
最佳答案
您可以使用javascript的对象音频
例如
var audio = new Audio("path to your sound file");
audio.play();
或检查 html标签音频 http://www.w3schools.com/Tags/tag_audio.asp有自动播放属性
或者您可以使用 SoundManager :http://www.schillmania.com/projects/soundmanager2/
关于html - Mozilla的背景音,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23310336/