87,993
社区成员
发帖
与我相关
我的任务
分享
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title> 页面名称 </title>
<style type="text/css">
</style>
</head>
<body>
<div id="box">
<video id="vid" controls="controls" src="xxx.mp4" autoplay="autoplay" width="640" height="360"></video>
</div>
<input type="button" value="隐藏视频" onclick="hide();" />
<script type="text/javascript">
function hide() {
document.getElementById("box").style.display = "none";
document.getElementById("vid").pause();
}
</script>
</body>
</html>