zoukankan      html  css  js  c++  java
  • css伪类图标

    <!DOCTYPE html>
    <html>

    <head>
    <meta charset="UTF-8">
    <title></title>
    </head>
    <style>
    body {
    color: #eee;
    }

    .box {
    position: relative;
    border-radius: 50%;
    border: 6px dotted #666;
    100px;
    height: 100px;
    animation: a 5s linear infinite;
    display: inline-block;
    }

    .box:before {
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    80px;
    content: '';
    height: 80px;
    border-radius: 50%;
    border: 15px solid transparent;
    box-shadow: 0 0 0 10px #666, 0 0 0 10px #666 inset;
    }

    @keyframes a {
    from {
    transform: rotate(0deg);
    }
    to {
    transform: rotate(360deg);
    }
    }

    .box1 {
    position: relative;
    border-radius: 50%;
    border: 6px solid #666;
    100px;
    height: 100px;
    animation: a 5s linear infinite;
    -webkit-animation: a 5s linear infinite;
    display: inline-block;
    border-left: 6px solid transparent;
    }

    .box1:before {
    0;
    height: 0;
    line-height: 0;
    font-size: 0;
    border- 10px;
    border-style: solid;
    border-color: transparent #666 transparent transparent;
    content: '';
    position: absolute;
    top: 71px;
    left: -4px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    }

    .box2 {
    position: relative;
    0px;
    height: 0px;
    padding: 20px 10px;
    border- 50px;
    border-left: none;
    border-color: transparent #666 transparent transparent;
    border-style: solid;
    box-shadow: inset 15px 0 #666;
    display: inline-block;
    }

    .box2:after {
    position: absolute;
    top: -65px;
    left: -30px;
    140px;
    height: 140px;
    content: '';
    border- 20px;
    border-style: double;
    border-radius: 50%;
    border-color: transparent #666 transparent transparent;
    }

    .box2:before {
    position: absolute;
    top: -40px;
    left: -7px;
    90px;
    height: 90px;
    content: '';
    border- 20px;
    border-style: double;
    border-radius: 50%;
    border-color: transparent #666 transparent transparent;
    }

    .box3 {
    100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid #666;
    position: relative;
    }

    .box3:after {
    80px;
    height: 6px;
    content: '';
    background: #666;
    position: absolute;
    top: 47px;
    left: 10px;
    }

    .box3:before {
    6px;
    height: 80px;
    content: '';
    background: #666;
    position: absolute;
    top: 10px;
    left: 47px;
    }

    .box4 {
    100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid #666;
    position: relative;
    }

    .box4:after {
    40px;
    height: 6px;
    content: '';
    background: #666;
    position: absolute;
    top: 47px;
    left: 10px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    }

    .box4:before {
    6px;
    height: 60px;
    content: '';
    background: #666;
    position: absolute;
    top: 15px;
    left: 60px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg)
    }

    .box5 {
    position: relative;
    100px;
    height: 100px;
    border-radius: 50%;
    border: 10px dotted #666;
    animation: a1 5s infinite linear;
    }

    .box5:before {
    position: absolute;
    80px;
    height: 80px;
    content: '';
    border-radius: 50%;
    top: 0px;
    left: 0px;
    border: 10px solid #666;
    animation: a1 5s infinite linear;
    }

    .box5:after {
    position: absolute;
    40px;
    height: 40px;
    content: '';
    border-radius: 50%;
    border: 10px solid #666;
    top: 20px;
    left: 20px;
    animation: a1 5s infinite linear;
    }

    @keyframes a1 {
    from {
    transform: rotate(0deg);
    border-color: red;
    }
    to {
    transform: rotate(360deg);
    border-color: green;
    }
    }

    .box6 {
    position: relative;
    0px;
    height: 0px;
    border: 80px solid #000;
    border-left: none;
    border-top-color: transparent;
    border-bottom-color: transparent;
    padding: 30px 25px;
    box-shadow: inset 20px 0 0 #000;
    }

    .box6:after {
    position: absolute;
    200px;
    height: 200px;
    content: '';
    border- 50px;
    border-radius: 50%;
    border-style: double;
    border-color: transparent #000 transparent transparent;
    left: 60px;
    top: -70px;
    }
    </style>

    <body>
    <div class="box"></div>
    <div class="box1"></div>
    <div class="box2"></div>
    <div class="box3"></div>
    <div class="box4"></div>
    <div class="box5"></div>
    <div class="box6"></div>
    </body>

    </html>

  • 相关阅读:
    洛谷 P1650 田忌赛马(dp)
    卡常技巧(持续更新)
    CF106C Buns(多重背包 单调队列优化)
    洛谷 P1385 密令(dp,离线)
    CF245H Queries for Number of Palindromes(dp,二维前缀和)
    CF1061C Multiplicity(dp)
    对拍技巧
    牛客练习赛89 解题报告(ABCDF)
    洛谷 P1018 [NOIP2000 提高组] 乘积最大(dp,高精度)
    洛谷 P5629 【AFOI-19】区间与除法(ST表)
  • 原文地址:https://www.cnblogs.com/gg123/p/7108665.html
Copyright © 2011-2022 走看看