用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>
标签:八卦图,50%,30px,height,radius,fff,border,太极,css 来源: https://blog.csdn.net/dreamgetting/article/details/118266977