<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<title>数码管时钟</title>
<style type="text/css">
.ledback{
background:url("./imgs/LED.png") 0px 0px no-repeat;
background-size:100% 100%;
width:740px;
height:300px;
margin:auto;
}
.top1{
width:100%;
height:15%;
background-color:red;
opacity:0.6;
}
.timediv{
width:100%;
height:38%;
background-color:green;
opacity:0.6;
}
.datediv{
width:100%;
height:34%;
background-color:blue;
opacity:0.6;
}
</style>
</head>
<body>
<div class="ledback">
<div class="top1"></div>
<div class="timediv"></div>
<div class="datediv"></div>
</div>
</body>
</html>