太极(纯css)

<style>
        *{
            margin: 0;
            padding: 0;
        }
        html,body{
            width: 100%;
            height: 100%;
        }
        div{
            margin: 100px;
            width: 100px;
            height: 200px;
            border-radius: 50%;
            background-color: white;
            border-right: 100px solid black;
            /* box-shadow 水平偏移 垂直偏移 模糊度 阴影半径 颜色 */
            box-shadow: 0 0 50px 5px black;
            position: relative;
        }
        /* content:""; 撑开容器*/
        div::after{
            width: 100px;
            height: 100px;
            position: absolute;
            content: "";
            z-index: 1;
            top: 0;
            left: 50%;
            border-radius: 50%;
            background-color: white;
            box-shadow: 0 100px 0 black;
        }
        div::before{
            width: 30px;
            height: 30px;
            position: absolute;
            content: "";
            z-index: 2;
            top: 15%;
            left: 85%;
            background-color: black;
            border-radius: 50%;
            box-shadow: 0 110px 0 white;
        }
    </style>

结果展示:


taiji.png
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容