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>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?