如何添加背景歌曲 [英] How do I add a background song
本文介绍了如何添加背景歌曲的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否有任何方法可以添加在所有页面中播放的背景歌曲。我的意思是如果我们开始浏览网站,我想继续播放同一首歌,而不是重新开始。以下适用于一个页面,但是一旦我开始导航到其他页面,它就会停止。
任何建议。???
谢谢你是
I would like to know if there is any way we can add a background song that plays in all pages. I mean if we start navigating the website, I would like to continue playing the same song, and not start it over again. The following works for one page, but once I start navigating into other pages, it stops.
Any advice.???
Thank you
<audio src="Rwanda Genocide Song.mp3" autostart="true" loop="true" autoplay="autoplay"
width="2" height="5">
</audio>
推荐答案
这里描述了所有内容: http://www.w3schools.com/html/html_sounds.asp [ ^ ]。
-SA
Everything is described here: http://www.w3schools.com/html/html_sounds.asp[^].
—SA
这篇关于如何添加背景歌曲的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文