<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
div,
p {
position: absolute;
left: 0;
width: 100px;
height: 100px;
background-color: pink;
}
p {
top: 400px;
background-color: red;
}
</style>
</head>
<body>
<button>点击</button>
<div></div>
<p>love u</p>
<script>
//动画函数封装,obj目标对象&#