2023-11-26 12:51:59
需要准备的材料分别有:电脑、浏览器、html编辑器。
1、首先,打开html编辑器,新建html文件,例如:index.html。
2、在index.html中的<body>标签中,输入html代码:<audioautoplay="autoplay"loop=""><sourcesrc="https://img.kmw.com11704.mp3"></audio>。
3、浏览器运行index.html页面,此时一进入页面就自动播放了背景音乐。
相关阅读: