<!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>
.box1 {
border: 1px solid #000;
width: 200px;
height: 200px;
background: yellow;
position: absolute;
}
.box2 {
border: 1px solid #000;
width: 200px;
height: 200px;
top: 300px;
left: 400px;
position: absolute;
}
.diva {
position: absolute;
width: 40px;
height: 40px;
left: 0;
background-color: blue;
z-index: 2;
font-size: 20px;
line-height: 20px;
text-align: center;
}
.divb {
JS复习小项目setInterval实现简单动画
最新推荐文章于 2023-03-08 14:07:58 发布