宋柏霖的第十三个作业

Original 2019-04-18 10:45:55 161
abstract:<!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <title>停止</title></title>    <script t

<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <title>停止</title></title>
   <script type="text/javascript" src="jquery-3.3.1.js"></script>
   <style type="text/css">
div{
     height: 500px;width: 500px;background: blue;position:absolute;margin: 10px;
}
   </style>
   <script type="text/javascript">
$(document).ready(function () {
   $('#right').click(function () {
       $('.box1').animate({left:'+800px'},2000)
   })
   $('#stop').click(function () {
       $('.box1').stop()
})
})

   </script>
</head>
<body>
<button id="right">右移</button>
<button id="stop">停止</button>
<div class="box1"></div>
</body>
</html>

Correcting teacher:查无此人Correction time:2019-04-18 13:17:00
Teacher's summary:完成的不错,每行js代码结束要增加;号。继续加油。

Release Notes

Popular Entries