<div class="card" style="background: url(https://pic.liesys.com/i/2022/12/21/63a2d91b57c8f.png) no-repeat; background-size: cover;"><br> <center> <b><h4><p><span style="color: #ffffff;">2023年新春倒计时</span></p></h4></b> <b><h5><p><span style="color: #ffffff;">谎伴导航</span></p></h5></b> </center> <div class="gn_box"> <center> <div id="CountMsg" class="HotDate text-light"> <span style="color: #ffffff;"><span id="t_d">10天</span> <span id="t_h">10时</span> <span id="t_m">10分</span> <span id="t_s">10秒</span></span> </div><br> </center><br> <script type="text/javascript"> function getRTime() { var EndTime = new Date('2023/01/21 00:00:00'); //可以修改时间 var NowTime = new Date(); var t = EndTime.getTime() - NowTime.getTime(); var d = Math.floor(t / 1000 / 60 / 60 / 24); var h = Math.floor(t / 1000 / 60 / 60 % 24); var m = Math.floor(t / 1000 / 60 % 60); var s = Math.floor(t / 1000 % 60); document.getElementById("t_d").innerHTML = d + " 天"; document.getElementById("t_h").innerHTML = h + " 时"; document.getElementById("t_m").innerHTML = m + " 分"; document.getElementById("t_s").innerHTML = s + " 秒"; } setInterval(getRTime, 1000); </script> </div> </div><style> .copyright { margin-top: 10px; padding: 10px; background: #5f9ea0; border-radius: 5px; color : #f0ffff; } .copyright .copyright-title { padding: 5px; text-align: center; } .copyright .copyright-title h3 { font-size: 18px; } .copyright .copyright-text { font-size: 15px; line-height: 25px; } .copyright .copyright-url { margin: 5px 0; } </style>
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...