如何在 HTML 中指定音频/视频每次播放结束后重新开始播放?
htmlweb developmentfront end technology更新于 2024/8/14 10:52:17
使用 loop 属性可以指定音频/视频重新开始播放。您可以尝试运行以下代码来实现 loop 属性 −
示例
<!DOCTYPE HTML> <html> <body> <video width = "300" height = "200" controls loop> <source src = "/html5/foo.ogg" type = "video/ogg" /> <source src = "/html5/foo.mp4" type = "video/mp4" /> Your browser does not support the video element. </video> </body> </html>
相关文章
有用资源
html 参考教程 - 该教程包含有关 html 的更多信息:https://www.cainiaomax.com/html/

