3. HTML音频

一:

    1. 方法

      (1)<embed> 空元素, 注意关闭。

             <embed height = "100" width = "100" src = "song.mp3" />

      (2)<object>

             <object height = "100" width = "100" data = "song.mp3"></object>

       (3) <audio>

            <audio controls = "controls">

                <source src = "song.mp3" type = "audio/mp3" />

                <source src = "song.ogg" type = "audio/ogg" />

            </audio>

       (4) <a href>超链接url

            <a href = "song.mp3">Play the sound.</a>

        (5) 最好的解决方法。

            <audio controls = "controls" height = "100" width = "100">

                <source src = "song.mp3" src = "audio/mp3" />

                <source src = "song.ogg" src = "audio/ogg" />
             <embed height = "100" widht = "100" src = "song.mp3" />

            </audio>

posted @ 2013-07-22 15:36  安心种田  阅读(266)  评论(0编辑  收藏  举报