Playing sound on my website

后端 未结 6 1765
鱼传尺愫
鱼传尺愫 2021-01-18 17:40

I use a code to play background music on my website..



         


        
6条回答
  •  醉话见心
    2021-01-18 18:02

    Try using the audio tag instead:

    
    

    You need to use both mp3 and ogg files to be able to play your sound correctly in all browsers. Firefox for instance does not support mp3 files. Also using .wav is on websites is severely frowned upon due to its size.

提交回复
热议问题