在学习的时候,有些时候我们会遇到很不耐烦的事情,其实这个时候,就需要多读读道德经来调节下!
研究嘛,要有乐趣才行,以下是我写的一个匀速钟摆!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
*{
padding: 0;
margin:0;
}
#box {
position: absolute;
left: 0;
top:50px;
width: 100px;
height: 100px;
background-color:red;
}
#line{
position: absolute;
left:300px;
top:50px;
width:1px;
height: 100px;
background-color: red;