zoukankan      html  css  js  c++  java
  • 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>

  • 相关阅读:
    Linux下安装maven
    非连续性及反脆弱
    高手是怎么练成的
    思维型大脑
    编写文档五轮模式
    Nginx初识
    ida快捷键
    ida+gdb调试任意平台
    gcc常用命令使用
    ida调试ios应用
  • 原文地址:https://www.cnblogs.com/gavinwu/p/3205439.html
Copyright © 2011-2022 走看看