Tài liệu Controlling Audio with AUDIO Tags

Thảo luận trong 'Thiết Kế Web' bắt đầu bởi Thúy Viết Bài, 5/12/13.

  1. Thúy Viết Bài

    Thành viên vàng

    Bài viết:
    198,891
    Được thích:
    173
    Điểm thành tích:
    0
    Xu:
    0Xu
    In the previous code, the AUDIO element has the autoplay and
    controls attributes added. You will see in Figure 4.9 that the controls
    are stripped-down versions of the AUDIO element controls.
    As with the VIDEO element controls, there is nothing too fancy.
    As with video, you can control the audio playing back using
    JavaScript and some CSS. Let’s start with using JavaScript before
    we make everything look pretty with CSS. The first step is to create
    the base web page. The following HTML should be getting
    familiar to you.
    <!DOCTYPE HTML>
    <html>
    <head>
    <title>Audio in HTML5</title>
    </head>
    <body>
    </body>
    </html>
    Now, let’s add the AUDIO element between the BODY
    elements.
    <audio>
    <source src=“sample.mp3”>
    </audio>
    You will see from the HTML code that the AUDIO element
    does not have any attributes. The autoplay and controls attributes
    have been removed.
     
Đang tải...
Chủ đề tương tự
  1. Thúy Viết Bài
    Trả lời:
    0
    Xem:
    388
  2. Thúy Viết Bài
    Trả lời:
    0
    Xem:
    358
  3. Thúy Viết Bài
    Trả lời:
    0
    Xem:
    357