<audio id="my" controls="controls" loop="loop">
<source src="/11.mp3" type="audio/mp3">
Your browser does not support the audio element.
</audio>
<input type="button" οnclick="document.getElementById('my').play()" value='play'/> <!-- 开始 -->
<input type="button" οnclick="document.getElementById('my').pause()" value='pause'/> <!-- 暂停 -->
<input type="button" οnclick="document.getElementById('my').currentTime = 0.0" value='stop'/> <!-- 归零 -->
html5 音频autio标签控制
最新推荐文章于 2024-08-31 20:49:28 发布