<!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{
width: 400px;
height: 100px;
margin: 50px auto;
font-family: Jokerman;
font-size: 40px;
background: palegoldenrod;
line-height: 100px;
text-align: center;
box-shadow: 0 0 3px 1px #666666;
text-shadow: 1px 1px 1px;
border-radius: 10px;
}
</style>
</head>
<body>
<div id="demo"></div>
<script>
setInterval(function(){
var shizhon = new Date().toLocaleTimeString();
document.getElementById("demo").innerHTML = shizhon;
},1000)
</script>
</body>
</html>
数字化时钟 js
最新推荐文章于 2022-04-12 23:14:24 发布