博客列表 >太极图案例

太极图案例

寒夏
寒夏原创
2022年05月13日 20:27:17430浏览

<!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <meta name="viewport" content="width=device-width, initial-scale=1.0">    <title>太极图</title>    <style>        body{            background: #7c7c7c;        }        .taiji{            width: 300px;            height: 300px;            border-radius: 300px;            margin: 50px auto;            overflow: hidden;            display: flex;            animation: taiji 5s infinite linear;        }       @keyframes taiji{           0%{               transform: rotate(0deg);           }           100%{               transform: rotate(360deg);           }       }        .taijileft{            height: 300px;            width: 150px;            background: white;        }        .taijirigth{            height: 300px;            width: 150px;            background: black;        }        .taijil{            width: 150px;            height: 150px;            border-radius: 150px;            position: relative;            left: 80px;            margin:0px auto;            z-index: 3;            background: white;        }        .taijir{            width: 148px;            height: 148px;            border: 1px solid #000;            border-radius: 150px;            position: relative;            top: 150px;            right: 75px;            background: black;            margin:0px auto;        }        .taijil div{            width: 30px;            height: 30px;            border-radius: 30px;            background: black;            position: relative;            top: 37%;            left: 39%;        }        .taijir div{            width: 30px;            height: 30px;            border-radius: 30px;            background: white;            position: relative;            left: 39%;            top: 38%;        }    </style></head><body>    <div class="taiji">        <div class="taijileft">            <div class="taijil">                <div></div>            </div>        </div>        <div class="taijirigth">            <div class="taijir">                <div></div>            </div>        </div>    </div></body></html>
声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议