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>

  • 相关阅读:
    jmeter跨平台执行时的文件路径问题
    jenkins配置
    jmeter--负载测试
    jmeter-脚本制作
    jmeter学习-性能指标、jmeter初识
    功能测试--其他
    功能测试--Fiddler
    功能测试--APP专项
    功能测试--基础(二)
    功能测试-基础(一)
  • 原文地址:https://www.cnblogs.com/gavinwu/p/3205439.html
Copyright © 2011-2022 走看看