<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
background-color: aqua;
}
.div{
width: 300px;
height: 300px;
background:linear-gradient(black 50% ,white 50% );
border-radius: 50%;
display: flex;
align-items: center;
}
.div::after{
content: '';
width: 150px;
height: 150px;
border-radius: 50%;
background: radial-gradient(white 25%,black 25%);
background-color: black;
}
.div::before{
content: '';
width: 150px;
height: 150px;
border-radius: 50%;
background: radial-gradient(black 25%,white 25%);
background-color: white;
}
</style>
</head>
<body>
<div class="div">
</div>
</script>
</body>
</html>
只用一个div 设置css样式做出来一个太极图案
最新推荐文章于 2024-10-08 23:45:40 发布