动画停止滑动作业

Original 2018-12-19 21:31:24 378
abstract:<!DOCTYPE html> <html> <head>      <meta charset="UTF-8">      <title>动画停止作业</title> <scrip
<!DOCTYPE html>
<html>
<head>
     <meta charset="UTF-8">
     <title>动画停止作业</title>
<script src="jquery-3.3.1.min.js"></script>
<script> 
$(document).ready(function(){
  $("#biaoti").click(function(){
    $("#box").slideDown(3000);
  });
  $("#stop").click(function(){
    $("#box").stop();
  });
});
</script>
 
<style type="text/css"> 
#box,#biaoti{padding:5px;text-align:center;background-color:#ff771b;border:solid 1px #ccc;color: #fff;}
#box{padding:50px;display:none;}
button{width: 100px;height: 40px;font-size: 16px;color: #fff;font-weight: bold;background:#ff771b; }
</style>
</head>

<body>
<button id="stop">停止滑动</button>
<div id="biaoti">点击这里,展开幕布播放mv</div>
<div id="box">
<video src="http://www.zengzone.com/1.mp4" controls="controls" width="600px"></video>
</div>
</body>
</html>

QQ截图20181219212957.jpg

Correcting teacher:灭绝师太Correction time:2018-12-20 09:59:01
Teacher's summary:完成的不错呦!出来布局丑了点!学以致用了不错!

Release Notes

Popular Entries