首页 > Web开发 > 详细

css画八卦图

时间:2019-05-16 16:19:00      阅读:120      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <style>
            body{
                background: #ccc;
            }
            #box{
                width: 0px;
                height: 600px;
                border-left: 300px solid white;
                border-right: 300px solid black;
                border-radius: 600px;
            }
            #box::before{
                content: ‘‘;
                display: block;
                width: 100px;
                height: 100px;
                border: 100px solid white;
                background: black;
                border-radius: 100%;
                margin-left: -150px;
            }
            #box::after{
                content: ‘‘;
                display: block;
                width: 100px;
                height: 100px;
                border: 100px solid black;
                background: white;
                border-radius: 100%;
                margin-left: -150px;
            }
        </style>
    </head>
    <body>
        <div id="box"></div>
    </body>
</html>

 

css画八卦图

原文:https://www.cnblogs.com/gxywb/p/10875996.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!