zoukankan      html  css  js  c++  java
  • HTML加CSS3太极图demo

    <!DOCTYPE html>
    <html>
    
        <head>
            <meta charset="UTF-8">
            <title></title>
        </head>
        <style type="text/css">
            .wrapper {
                width: 300px;
                height: 300px;
                position: absolute;
                top: 0;
                left: 0;
                bottom: 0;
                right: 0;
                margin: auto;
                animation: move 10s infinite linear;
                /*border: 1px solid red;*/
            }
            
            @keyframes move {
                from {
                    transform: rotate(0deg);
                }
                to {
                    transform: rotate(360deg);
                }
            }
            
            .circleFB {
                width: 300px;
                height: 300px;
                background-color: #000000;
                position: absolute;
                top: 0;
                border-radius: 50%;
            }
            
            .circleSB {
                width: 150px;
                height: 300px;
                background-color: white;
                border-radius: 0 150px 150px 0;
                position: absolute;
                top: 0;
                right: 0;
            }
            
            .circleFB1 {
                width: 150px;
                height: 150px;
                background-color: #000000;
                border-radius: 50%;
                position: absolute;
                left: 75px;
            }
            
            .circleFB2 {
                width: 150px;
                height: 150px;
                background-color: white;
                border-radius: 50%;
                position: absolute;
                left: 75px;
                bottom: 0px;
            }
            
            #samllW {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                background-color: white;
                position: absolute;
                left: 55px;
                top: 55px;
            }
            
            #samllB {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                background-color: #000000;
                position: absolute;
                left: 55px;
                bottom: 55px;
            }
        </style>
    
        <body>
            <div class="wrapper">
                <div class="circleFB"></div>
                <div class="circleSB"></div>
                <div class="circleFB1">
                    <div id="samllW"></div>
                </div>
                <div class="circleFB2">
                    <div id="samllB"></div>
                </div>
    
            </div>
        </body>
    
    </html>

    效果:

  • 相关阅读:
    ASP.NET中备份恢复数据库
    SQL Server连接失败错误小结
    GSL科学计算库的使用
    [转]VC编程中经常能遇到LNK2005错误
    主函数main中变量(int argc,char *argv[])的含义
    毕业了,工作了
    何为COM组件技术
    一个老外总结的WP开发资源
    跟我一起写Makefile
    qsort() 之 __cdecl
  • 原文地址:https://www.cnblogs.com/xiejn/p/11931279.html
Copyright © 2011-2022 走看看