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.
我想在我的页面上播放背景音乐,但我找不到它。我已经尝试了很多次,我确信路径是正确的。文件路径:C:\Users\matous\Downloads\idklol
</head> <body> <div class = 'headings'>randompage.</div> <embed src=“C:/Users/matous/Downloads/idklol.mp3”> </body> </html>
不是音乐控制窗口,而是显示我的文件不存在或已被移动的窗口。
您是否尝试过将音频文件移动到相对于您的 HTML 文档的路径?
鉴于以下情况:
www/index.html www/assets/idklol.mp3
index.html您将按如下方式设置路径:
index.html
<embed src="./assets/idklol.mp3">