久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      html如何實(shí)現(xiàn)audio停止

      在html中,可以使用puase方法實(shí)現(xiàn)audio停止,語(yǔ)法格式為“對(duì)象.pause();”?!皃ause()”方法停止(暫停)當(dāng)前播放的音頻或視頻,通常與“play()”方法一起使用,同時(shí)使用controls屬性來(lái)顯示音頻控件。

      html如何實(shí)現(xiàn)audio停止

      本教程操作環(huán)境:windows7系統(tǒng)、CSS3&&HTML5版、Dell G3電腦。

      pause() 方法停止(暫停)當(dāng)前播放的音頻或視頻。

      提示: 該方法通常與 play() 方法一起使用。

      提示:使用controls 屬性來(lái)顯示音頻控件 (如音頻上的: play, pause, seeking, volume, 等)。

      示例:

      <!DOCTYPE html> <html> <head>     <meta charset="UTF-8">     <title>視頻播放</title> </head> <body> <script>       window.onload =function(){           var ov=document.getElementById("a1");           ov.onmouseover=function() {                this.play();           }           ov.onmouseout =function() {                 this.pause();           }        };  </script>  <video   id="a1"  src="陳奕迅 - 陪你度過(guò)漫長(zhǎng)歲月.mp4"  controls   loop     width="400"  height="400">你的瀏覽器不支持</video> </body> </html>

      效果:

      html如何實(shí)現(xiàn)audio停止

      play() 方法開始播放當(dāng)前的音頻。

      其中鼠標(biāo)箭頭移動(dòng)到視頻中時(shí),觸發(fā)play功能,視頻開發(fā)播放;

      鼠標(biāo)箭頭離開視頻時(shí),觸發(fā)pause功能,視頻暫停播放。

      推薦學(xué)習(xí):html視頻教程

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)