用css设计实现太极八卦图的效果

<div></div>
<style>
 div{
 position:relative;
 width:150px;
 height:300px;
 background-color:#fff;
 border-left:150px solid #000;
 border-radius:50%;
}
 div::before{
  content:'';
  position:absolute;
  top:0;
  left:-75px;
  width:30px;
  height:30px;
  background-color:#fff;
  border:60px solid #000;
  border-radius:50%;
}
div::after{
  content:'';
  position:absolute;
  bottom:0;
  left:-75px;
  width:30px;
  height:30px;
  background-color:#000;
  border:60px solid #fff;
  border-radius:50%;
}
</style>

相关文章

Css常用的排序方式权重分配 排序方式: 1、按类型&#160;...
原文:https://www.cnblogs.com/wenruo/p/9732704.html 先上...
css属性:word-wrap:break-word; 与 word-break:break-all 的...
https://destiny001.gitee.io/color/
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML...
css之background的cover和contain的缩放背景图 对于这两个属...