代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="XJH" content="No copyright">
<title>计时器</title>
<style>
* {
margin: 0;
padding: 0;
}
#timer {
width: 200px;
height: 285px;
margin: 200px 40%;
background: #e83632;
position: relative;
}
.text {
position: absolute;
left: 25px;
top: 50px;
width: 150px;
height: 50px;
text-align: center;
line-height: 50px;
color: #fff;
font-size: