<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
/* 总框 */
.clock{
width: 500px;
height: 500px;
background-color: aqua;
margin: 50px auto 0;
position: relative;
overflow: hidden;
border-radius:50%;
background-image: url(img/timg.jpg) ;
background-size: cover; /* 图片平铺*/
}
/* 定位 */
.clock>div{
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
}
/* 时框 */
.time{
width: 50%;
height: 50%;
margin: auto;
animation: test 720s infinite linear;
时钟_rotateZ练习
最新推荐文章于 2022-08-11 02:46:36 发布