zoukankan      html  css  js  c++  java
  • CSS3 旋转的八卦图

    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>css3八卦</title>
        <style>
            #container{height: 203px; 200px;border-radius: 200px;box-shadow: 0 0 4px #666666;margin: 100px auto;
                background: linear-gradient(90deg,black 50%,white 50%);}
            #top,#bottom{height: 100px; 100px;margin: 0 auto;border-radius: 100px}
            #top{border: 1px solid white;}
            #bottom{border: 1px solid black;}
            #inner1,#inner2{height:25px; 25px;margin: 25px  auto;border-radius: 50px; }
            #inner1{background: black}
            #inner2{background: white}
            #top{background: white}
            #bottom{background: black}
            @keyframes bonce{
                0%{transform: rotate(0deg)}
                100%{transform: rotate(360deg)}
            }
            #container{animation: bonce 5s infinite linear;}
        </style>
    </head>
    <body>
    <div id="container">
        <div id="top">
            <div id="inner1"></div>
        </div>
        <div id="bottom">
            <div id="inner2"></div>
        </div>
    </div>
    
    </body>
    </html>
    

      

  • 相关阅读:
    Fiddler工具抓包
    简单Ant打包
    android中ActionBar的几个属性
    yum安装php7.2
    java 获取计算机内存
    docker apache安装
    docker 安装 openresty
    docker 安装nginx
    docker安装gitlab
    java获取时间格式
  • 原文地址:https://www.cnblogs.com/huzhangjun/p/6676767.html
Copyright © 2011-2022 走看看