码迷,mamicode.com
首页 > Web开发 > 详细

Div+Css画太极图源代码

时间:2015-07-28 10:28:57      阅读:219      评论:0      收藏:0      [点我收藏+]

标签:

<!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>

Div+Css画太极图源代码

标签:

原文地址:http://www.cnblogs.com/tl2f/p/4681812.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!