<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body{
background: lightblue;
}
div{
width: 200px;
height: 200px;
background: linear-gradient(white 50%,black 50%);
margin: 10px auto;
display:flex;
align-items: center;
border-radius: 50%;
}
div::before{
content: "";
display: block;
width: 100px;
height: 100px;
background:radial-gradient(white 25%,black 25%);
border-radius: 50%;
}
div::after{
content: "";
display: block;
width: 100px;
height: 100px;
background: blue;
border-radius: 50%;
background:radial-gradient(black 25%,white 25%);
}
</style>
</head>
<body>
<div></div>
</body>
</html>
web前端css太极图
于 2024-08-15 22:05:01 首次发布