<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
}
.hour {
left: 20px;
}
.minute {
left: 80px;
}
.second {
left: 140px;
}
.hour,
.minute,
.second {
position: absolute;
top: 200px;
color: #fff;
font-weight: 800;
font-size: 20px;
text-align: center;
line-height: 40px;
width: 40px;
height: 40px;
background: black;
}
</style>
</head&g
仿京东(线上商城)倒计时:date日期对象、定时器的运用
于 2022-04-02 20:47:48 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)