<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MV</title>
</head>
<body>
<video src="权志龙_G-Dragon_-狂放.mp4" id="myVideo" width="500" height="400">n您的浏览器不支持!</video>
<input type="button" value="播放/暂停" onclick="playPause()">
</body>
<script>
var myVideo = document.getElementById("myVideo");
function playPause(){
if(myVideo.paused){
myVideo.play();
}else{
myVideo.pause();
}
};
</script>
</html>
video标签使用
最新推荐文章于 2024-05-31 22:20:16 发布