dongshilve4392 2017-06-11 19:07
浏览 128
已采纳

HTML - 多个<audio>标签

I am writing a website for a school project in PHP+HTML+CSS. It is a website about a School-Orchestra. I tried to use multiple audio-tags. But it only displays the first and . Here is my Code:

<html>
    <head>
        <!-- HTML5 Extra Angaben für Umlaute werden unnötig -->
        <meta charset="utf-8">  
        <!-- HTML 4.x Extra Angaben für Umlaute werden unnötig -->
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>Con Fuoco</title>
        <link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
        <?php
            include("nav.html");
        ?>
        <div class="text">
        <h1>Die 9. Sinfonie von <a href="ad.php"></a>Antonín Dvořák</h1>
        <h2>Allgemeines</h2>
        <p>Die 9. Sinfonie von Antonin Dvorak entstand w&auml;hrend Dvorak's dreij&auml;hrigem Amerika-Aufenthaltes und wurde auch von diesem inspiriert.</p>
        <p></p>
        <h2>Original-Besetzung</h2>
        <p>2 Flöten (2. auch Piccoloflöte), 2 Oboen (2. auch Englischhorn), 2 Klarinetten, 2 Fagotte, 4 Hörner, 2 Trompeten, 3 Posaunen, Tuba, Pauke, Triangel, Becken, Streicher</p>
        <h2>H&ouml;rprobe? Ja!</h2>
        <!-- Problem zum lösen: Zeigt nur erstes <h3> und <audio> and-->
        <h3>1. Satz: Adagio - Allegro molto</h3>
        <audio src="./files/9-ad-1.ogg" controls /a>
        <h3>2. Satz: Largo</h3>
        <audio src="./files/9-ad-2.ogg" controls /a>
        <h3>3. Satz: Scherzo, Molto vivace</h3>
        <audio src="./files/9-ad-3.ogg" controls /a>
        <h3>4. Satz: Allegro con fuoco</h3>
        <audio src="./files/9-ad-4.ogg" controls /a>
        <!---->
        </div>
        <?php
            include("besucher.php");
        ?>
    </body>
</html>

</div>
  • 写回答

1条回答 默认 最新

  • doulan9188 2017-06-11 19:35
    关注

    Thanks to FirstOne!

    Removing the /a> at the and and closing the tag normally works.

            <!---->
            <h3>1. Satz: Adagio - Allegro molto</h3>
            <audio src="./files/9-ad-1.ogg" controls></audio>
            <h3>2. Satz: Largo</h3>
            <audio src="./files/9-ad-2.ogg" controls></audio>
            <h3>3. Satz: Scherzo, Molto vivace</h3>
            <audio src="./files/9-ad-3.ogg" controls></audio>
            <h3>4. Satz: Allegro con fuoco</h3>
            <audio src="./files/9-ad-4.ogg" controls></audio>
            <!---->

    </div>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥80 部署运行web自动化项目
  • ¥15 腾讯云如何建立同一个项目中物模型之间的联系
  • ¥30 VMware 云桌面水印如何添加
  • ¥15 用ns3仿真出5G核心网网元
  • ¥15 matlab答疑 关于海上风电的爬坡事件检测
  • ¥88 python部署量化回测异常问题
  • ¥30 酬劳2w元求合作写文章
  • ¥15 在现有系统基础上增加功能
  • ¥15 远程桌面文档内容复制粘贴,格式会变化
  • ¥15 这种微信登录授权 谁可以做啊