Div+Css画太极图源代码

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Div+Css太极图</title>
    <style type="text/css">
    .circle{
        width: 100px;
        height: 50px;
        border:1px solid black;
        border-radius: 100px;
        position:relative;
        border-bottom:50px solid black;
      }
    .circle::before{
        float:left;
        content: '';
        width: 10px;
        height: 10px;
        border: 20px solid black;
        border-radius: 50px;
        position: relative;
        top:50%;
        left:0;
        background-color:#fff;

     }
    .circle::after{
        float:right;
        content: '';
        width: 10px;
        height: 10px;
        border: 20px solid #fff;
        border-radius:50px;
        position: relative;
        top:50%;
        left:0;
        background-color:#000;
      }

    </style>
  </head>
  <body>
    <div class="circle">

    </div>
  </body>
</html>

上一篇:DBA_Oracle基本体系内存和进程结构(概念)


下一篇:[UE4]Overlap Event 碰撞事件