<script>
var sz = document.querySelector(".sz");
var fz = document.querySelector(".fz");
var mz = document.querySelector(".mz");
var hour = document.querySelector("#hour");
var min = document.querySelector("#min");
var sec = document.querySelector("#sec");
// 获取刻度
var kedu = document.querySelectorAll(".kedu");
// 旋转刻度
for (let i = 0; i < kedu.length; i++) {
kedu[i].style.transform = "rotate(" + i * 30 + "deg)";
}
function gettTime() {
var date = new Date();
var hours = date.getHours();
var mins = date.getMinutes();
var seconds = date.getSeconds();
if (seconds % 60 == 0) {
mz.style.transform = "rotate(-90deg)";