让你编写的网页能在Firefox中播放背景音乐 - 小施Blog - 凡走过,必留下痕迹.
要让你的网页能够在Firefox浏览器中播放背景音乐,使用object标签。以下是一段标准的、跨浏览器的代码示例:

引用
<object data="music.mp3" type="application/x-mplayer2" width="0" height="0">
<param name="src" value="music.mp3">
<param name="autostart" value="1">
<param name="playcount" value="infinite">
</object>



实际使用请注意修改音乐文件地址
  • 中查看更多“让你编写的网页能在Firefox中播放背景音乐”相关内容
  • 中查看更多“让你编写的网页能在Firefox中播放背景音乐”相关内容
  • 中查看更多“让你编写的网页能在Firefox中播放背景音乐”相关内容
  • 中查看更多“让你编写的网页能在Firefox中播放背景音乐”相关内容
  • 中查看更多“让你编写的网页能在Firefox中播放背景音乐”相关内容
  • 中查看更多“让你编写的网页能在Firefox中播放背景音乐”相关内容
  • Tags: ,
    学习笔记 » HTML+CSS+JS | 评论(0) | 引用(0) | 阅读(1866)
    发表评论
    表情
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    emotemotemotemotemot
    打开HTML
    打开UBB
    打开表情
    隐藏
    昵称   密码   游客无需密码
    网址   电邮   [注册]
                   

    验证码 不区分大小写