<!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>
div{
width: 300px;
height: 150px;
border: 1px solid black;
margin: 0 auto;
border-bottom: 150px solid black;
position: relative;
border-radius: 50%;
}
div::before{
content: "";
width: 10px;
height: 10px;
background-color: black;
border: 70px solid white;
position: absolute;
left:0;
top: 75px;
border-radius: 50%;
}
div::after{
content: "";
width: 10px;
height: 10px;
background-color: white;
border: 70px solid black;
position: absolute;
right: 0;
top: 75px;
border-radius: 50%;
}
</style>
</head>
<body>
<div></div>
</body>
</html>
太极图---小案例
于 2022-04-18 22:52:52 首次发布