<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
html,body{
height:100%;
}
*{
padding:0;
margin:0;
}
body{
background:cyan;
}
.box{
height:400px;
width:400px;
background:linear-gradient(to left,white 50%,black 50%);
border-radius:50%;
animation:bg 4s linear infinite;
}
@keyframes bg{
from{
transform:rotateZ(0deg);
}
to{
transform:rotateZ(360deg);
}
}
.son1,.son2{
height:200px;
width:200px;
margin:0 auto;
border-radius:50%;
overflow:hidden;
}
.son1{
background:black;
}
.son2{
background:white;
}
.test,.test2{
height:100px;
width:100px;
background:radial-gradient(at 30px 30px,#878b8d,#b1b4b5);
margin:50px auto;
border-radius:50%;
}
</style>
</head>
<body>
<div class="box">
<div class="son1">
<div class="test"></div>
</div>
<div class="son2">
<div class="test2"></div>
</div>
</div>
</body>
</html>
如何用html 写八卦
最新推荐文章于 2024-07-21 16:20:05 发布