Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将音频文件与 .html 文件一起保存在一个文件中。由于某种原因,音乐播放器或界面出现在我的屏幕上,但没有播放。我查看了教程和在线网站,并没有做任何不同的事情。我究竟做错了什么?
<audio controls> <source src="Weightless.mp3" type="audio/mpeg"> </audio>
我没有足够的“声誉”来发表评论,很抱歉“答案”。只是为了帮助您和我们进行故障排除,请尝试引用绝对来源:
<source src="http://www.yoursite.com/Weightless.mp3" type="audio.mpeg">
我认为您需要通过 javascript 或 do 触发标签。这将自动将触发器设置为空格。