• div+css3实现的小丸子和爷爷


    HTML代码

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>小丸子一家</title>
    <link rel="stylesheet" href="main.css">
    </head>
    <body>
    <div class="main">
    <div class="me">
    <div class="hairs">
    <div class="hair hair1"></div>
    <div class="hair hair2"></div>
    <div class="hair hair3"></div>
    <div class="hair hair4"></div>
    <div class="hair hair5"></div>
    <div class="hair hair6"></div>
    <div class="hair hair7"></div>
    </div>

    <div class="face">
    <div class="brow left-brow"></div>
    <div class="brow right-brow"></div>
    <div class="eye left-eye"></div>
    <div class="eye right-eye"></div>

    <div class="blusher left-blusher"></div>
    <div class="blusher right-blusher"></div>

    <div class="mouth"></div>

    <div class="ear left-ear"></div>
    <div class="ear right-ear"></div>
    </div>

    <div class="clothes">
    <div class="collar left-collar"></div>
    <div class="collar right-collar"></div>
    <div class="straps left-straps"></div>
    <div class="straps right-straps"></div>
    </div>

    <div class="arm left-arm"></div>
    <div class="arm right-arm"></div>

    <div class="belt"></div>
    <div class="skirt">
    <div class="line line1"></div>
    <div class="line line2"></div>
    <div class="line line3"></div>
    <div class="line line4"></div>
    <div class="line line5"></div>
    </div>
    <div class="leg left-leg"></div>
    <div class="leg right-leg"></div>

    <div class="stockings left-stockings"></div>
    <div class="stockings right-stockings"></div>

    <div class="shoes left-shoes"></div>
    <div class="shoes right-shoes"></div>
    </div>


    <div class="grandpa">
    <div class="hairs">
    <div class="hair hair1"></div>
    <div class="hair hair2"></div>
    <div class="hair hair3"></div>
    <div class="hair hair4"></div>
    <div class="hair hair5"></div>
    </div>
    <div class="ear left-ear"></div>
    <div class="ear right-ear"></div>
    <div class="header">

    <div class="bangs">
    <div class="bang bang1"></div>
    <div class="bang bang2"></div>
    <div class="bang bang3"></div>
    </div>

    <div class="wrinkle wrinkle1"></div>
    <div class="wrinkle wrinkle2"></div>

    <div class="brow left-brow"></div>
    <div class="brow right-brow"></div>

    <div class="eye left-eye"></div>
    <div class="eye right-eye"></div>

    <div class="nose"></div>

    <div class="mouth"></div>
    </div>

    <div class="clothes">
    <div class="collar"></div>
    <div class="cover"></div>
    </div>
    <div class="hand"></div>

    <div class="trousers"></div>
    <div class="footer left-footer"></div>
    <div class="footer right-footer"></div>
    <div class="shoes left-shoes"></div>
    <div class="shoes right-shoes"></div>


    </div>

    </div>
    </body>
    </html>

     CSS代码

    @-webkit-keyframes eye {
    /* line 2, main.less */
    0% {
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
    }
    /* line 5, main.less */
    20% {
    -webkit-transform: scale(1, 0.1);
    transform: scale(1, 0.1);
    }
    /* line 9, main.less */
    100% {
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
    }
    }
    @keyframes eye {
    /* line 2, main.less */
    0% {
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
    }
    /* line 5, main.less */
    20% {
    -webkit-transform: scale(1, 0.1);
    transform: scale(1, 0.1);
    }
    /* line 9, main.less */
    100% {
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
    }
    }
    /* line 13, main.less */
    body {
    background: #ffef5e;
    }
    /* line 16, main.less */
    body,
    div {
    margin: 0;
    padding: 0;
    background: #ffef5e;
    }
    /* line 21, main.less */
    .border {
    border: 1px solid #152131;
    }
    /* line 24, main.less */
    .main {
    position: relative;
    700px;
    margin: 50px auto;
    }
    /* line 29, main.less */
    .me {
    position: absolute;
    top: 250px;
    left: 100px;
    z-index: 10;
    }
    /* line 34, main.less */
    .me .hairs {
    background: #152131;
    190px;
    height: 250px;
    border-radius: 50% 50% 0 0;
    left: -30px;
    top: -50px;
    position: absolute;
    overflow: hidden;
    }
    /* line 43, main.less */
    .me .hairs:after {
    content: '';
    position: absolute;
    300px;
    height: 200px;
    background: #ffef5e;
    top: 120px;
    }
    /* line 51, main.less */
    .me .hairs .hair {
    35px;
    height: 45px;
    background: #152131;
    position: absolute;
    z-index: 1;
    -webkit-transform: rotate(70deg) scale(1) skew(44deg) translate(8px);
    -ms-transform: rotate(70deg) scale(1) skew(44deg) translate(8px);
    transform: rotate(70deg) scale(1) skew(44deg) translate(8px);
    }
    /* line 58, main.less */
    .me .hairs .hair.hair1 {
    top: 17px;
    left: 27px;
    }
    /* line 62, main.less */
    .me .hairs .hair.hair2 {
    top: 8px;
    left: 52px;
    }
    /* line 66, main.less */
    .me .hairs .hair.hair3 {
    top: 4px;
    left: 73px;
    }
    /* line 70, main.less */
    .me .hairs .hair.hair4 {
    top: 0;
    left: 90px;
    }
    /* line 74, main.less */
    .me .hairs .hair.hair5 {
    top: 4px;
    left: 108px;
    }
    /* line 78, main.less */
    .me .hairs .hair.hair6 {
    top: 8px;
    left: 125px;
    }
    /* line 82, main.less */
    .me .hairs .hair.hair7 {
    top: 17px;
    right: 17px;
    }
    /* line 88, main.less */
    .me .face {
    background: #fbdac7;
    130px;
    height: 100px;
    position: absolute;
    top: 0;
    border-radius: 20px 20px 50px 50px;
    border: 1px solid #152131;
    }
    /* line 95, main.less */
    .me .face:after {
    content: "";
    14px;
    height: 10px;
    background: #fbdac7;
    position: absolute;
    bottom: -12px;
    left: 50%;
    margin-left: -7px;
    border: 1px solid #152131;
    }
    /* line 107, main.less */
    .me .face .brow {
    42px;
    height: 10px;
    background: #152131;
    position: absolute;
    top: 26px;
    border-radius: 50%;
    }
    /* line 114, main.less */
    .me .face .brow:after {
    content: "";
    background: #fbdac7;
    position: absolute;
    50px;
    height: 10px;
    top: 1px;
    border-radius: 50%;
    }
    /* line 123, main.less */
    .me .face .brow.left-brow {
    left: 18px;
    -webkit-transform: rotate(-10deg);
    -ms-transform: rotate(-10deg);
    transform: rotate(-10deg);
    }
    /* line 127, main.less */
    .me .face .brow.right-brow {
    right: 14px;
    -webkit-transform: rotate(10deg);
    -ms-transform: rotate(10deg);
    transform: rotate(10deg);
    }
    /* line 132, main.less */
    .me .face .eye {
    14px;
    height: 14px;
    border-radius: 50%;
    background: #000;
    position: absolute;
    top: 40px;
    z-index: 2;
    }
    /* line 140, main.less */
    .me .face .eye.left-eye {
    left: 32%;
    }
    /* line 143, main.less */
    .me .face .eye.right-eye {
    right: 32%;
    }
    /* line 148, main.less */
    .me .face .blusher {
    12px;
    height: 12px;
    border-radius: 50%;
    background: #f79c99;
    position: absolute;
    top: 70px;
    }
    /* line 155, main.less */
    .me .face .blusher.left-blusher {
    left: 8px;
    }
    /* line 158, main.less */
    .me .face .blusher.right-blusher {
    right: 8px;
    }
    /* line 162, main.less */
    .me .face .mouth {
    border: 1px solid #152131;
    z-index: 1;
    30px;
    height: 30px;
    background: #d96b6e;
    position: absolute;
    top: 50px;
    left: 50px;
    border-radius: 50%;
    }
    /* line 172, main.less */
    .me .face .mouth:after {
    content: "";
    60px;
    height: 30px;
    background: #fbdac7;
    position: absolute;
    top: -10px;
    left: -20px;
    border-radius: 30%;
    }
    /* line 183, main.less */
    .me .face .ear {
    10px;
    height: 20px;
    background: #fbdac7;
    position: absolute;
    top: 30px;
    z-index: 2;
    }
    /* line 190, main.less */
    .me .face .ear.left-ear {
    left: -11px;
    border-radius: 5px 0 0 10px;
    }
    /* line 194, main.less */
    .me .face .ear.right-ear {
    right: -11px;
    border-radius: 0 5px 10px 0;
    }
    /* line 200, main.less */
    .me .clothes {
    background: #fff;
    70px;
    height: 80px;
    position: absolute;
    top: 112px;
    left: 31px;
    z-index: 2;
    border-radius: 30% 30% 10px 10px;
    overflow: hidden;
    border: 1px solid #152131;
    }
    /* line 211, main.less */
    .me .clothes .sleeve {
    background: #fff;
    40px;
    height: 40px;
    position: absolute;
    top: 10px;
    border-radius: 10px;
    }
    /* line 231, main.less */
    .me .clothes .collar {
    z-index: 3;
    position: absolute;
    border: 1px solid #152131;
    20px;
    height: 10px;
    background: #fff;
    }
    /* line 238, main.less */
    .me .clothes .collar.left-collar {
    left: 12px;
    -webkit-transform: rotate(50deg);
    -ms-transform: rotate(50deg);
    transform: rotate(50deg);
    }
    /* line 242, main.less */
    .me .clothes .collar.right-collar {
    right: 12px;
    -webkit-transform: rotate(-50deg);
    -ms-transform: rotate(-50deg);
    transform: rotate(-50deg);
    }
    /* line 247, main.less */
    .me .clothes .straps {
    z-index: 2;
    position: absolute;
    6px;
    height: 100px;
    background: #e9003a;
    border: 1px solid #152131;
    }
    /* line 254, main.less */
    .me .clothes .straps.left-straps {
    left: 12px;
    }
    /* line 257, main.less */
    .me .clothes .straps.right-straps {
    right: 12px;
    }
    /* line 262, main.less */
    .me .arm {
    70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #152131;
    z-index: 1;
    position: absolute;
    top: 115px;
    z-index: 0;
    }
    /* line 272, main.less */
    .me .arm.left-arm {
    left: 10px;
    }
    /* line 274, main.less */
    .me .arm.left-arm:after {
    content: "";
    position: absolute;
    background: #ffef5e;
    60px;
    height: 60px;
    left: 12px;
    top: 5px;
    border-radius: 50%;
    border: 1px solid #152131;
    }
    /* line 286, main.less */
    .me .arm.right-arm {
    left: 52px;
    }
    /* line 288, main.less */
    .me .arm.right-arm:after {
    content: "";
    position: absolute;
    background: #ffef5e;
    60px;
    height: 60px;
    left: -4px;
    top: 5px;
    border-radius: 50%;
    border: 1px solid #152131;
    }
    /* line 301, main.less */
    .me .belt {
    background: #ed023a;
    border: 1px solid #152131;
    height: 10px;
    left: 31px;
    position: absolute;
    top: 182px;
    70px;
    z-index: 3;
    }
    /* line 311, main.less */
    .me .skirt {
    background: #ed023a;
    background: none;
    border-color: #e9003a transparent;
    -webkit-border-image: none;
    -o-border-image: none;
    border-image: none;
    border-style: solid;
    border- 0px 30px 50px;
    height: 0;
    left: 1px;
    position: absolute;
    top: 194px;
    72px;
    z-index: 3;
    border-radius: 0 0 50% 50%;
    }
    /* line 326, main.less */
    .me .skirt .line {
    1px;
    height: 30px;
    position: absolute;
    background: #000;
    top: 10px;
    -webkit-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    transform-origin: 0 0;
    }
    /* line 333, main.less */
    .me .skirt .line.line1 {
    left: 10px;
    -webkit-transform: rotate(20deg);
    -ms-transform: rotate(20deg);
    transform: rotate(20deg);
    }
    /* line 337, main.less */
    .me .skirt .line.line2 {
    left: 25px;
    -webkit-transform: rotate(10deg);
    -ms-transform: rotate(10deg);
    transform: rotate(10deg);
    }
    /* line 341, main.less */
    .me .skirt .line.line3 {
    left: 35px;
    }
    /* line 344, main.less */
    .me .skirt .line.line4 {
    right: 25px;
    -webkit-transform: rotate(-10deg);
    -ms-transform: rotate(-10deg);
    transform: rotate(-10deg);
    }
    /* line 348, main.less */
    .me .skirt .line.line5 {
    right: 10px;
    -webkit-transform: rotate(-20deg);
    -ms-transform: rotate(-20deg);
    transform: rotate(-20deg);
    }
    /* line 354, main.less */
    .me .leg {
    12px;
    height: 40px;
    background: #fadbc7;
    border: 1px solid #152131;
    position: absolute;
    top: 220px;
    z-index: 2;
    }
    /* line 362, main.less */
    .me .leg.left-leg {
    left: 40px;
    }
    /* line 365, main.less */
    .me .leg.right-leg {
    left: 78px;
    }
    /* line 368, main.less */
    .me .leg:after {
    content: '';
    12px;
    height: 16px;
    background: #fff;
    border: 1px solid #152131;
    border-bottom: 0;
    top: 40px;
    left: -1px;
    position: absolute;
    }
    /* line 380, main.less */
    .me .stockings {
    28px;
    height: 12px;
    background: #fff;
    border: 1px solid #152131;
    position: absolute;
    z-index: 1;
    -webkit-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    transform-origin: 0 0;
    }
    /* line 388, main.less */
    .me .stockings.left-stockings {
    left: 21px;
    top: 275px;
    -webkit-transform: rotate(-20deg);
    -ms-transform: rotate(-20deg);
    transform: rotate(-20deg);
    border-radius: 50% 0 0 50%;
    }
    /* line 394, main.less */
    .me .stockings.right-stockings {
    left: 83px;
    top: 265px;
    -webkit-transform: rotate(20deg);
    -ms-transform: rotate(20deg);
    transform: rotate(20deg);
    border-radius: 0 50% 50% 0;
    }
    /* line 401, main.less */
    .me .shoes {
    40px;
    height: 17px;
    position: absolute;
    z-index: 0;
    background: #a23030;
    -webkit-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    transform-origin: 0 0;
    border-radius: 50%;
    }
    /* line 409, main.less */
    .me .shoes.left-shoes {
    left: 13px;
    top: 280px;
    -webkit-transform: rotate(-20deg);
    -ms-transform: rotate(-20deg);
    transform: rotate(-20deg);
    border-radius: 50% 0 0 50%;
    }
    /* line 415, main.less */
    .me .shoes.right-shoes {
    left: 81px;
    top: 267px;
    -webkit-transform: rotate(20deg);
    -ms-transform: rotate(20deg);
    transform: rotate(20deg);
    border-radius: 0 50% 50% 0;
    }
    /* line 424, main.less */
    .grandpa {
    position: absolute;
    top: 40px;
    left: 280px;
    z-index: 10;
    126px;
    }
    /* line 430, main.less */
    .grandpa .hairs {
    position: absolute;
    z-index: 3;
    126px;
    }
    /* line 435, main.less */
    .grandpa .hairs .hair {
    background: #152131;
    1px;
    height: 5px;
    position: absolute;
    }
    /* line 440, main.less */
    .grandpa .hairs .hair.hair1 {
    left: 40px;
    top: 12px;
    }
    /* line 444, main.less */
    .grandpa .hairs .hair.hair2 {
    left: 50px;
    top: 8px;
    }
    /* line 448, main.less */
    .grandpa .hairs .hair.hair3 {
    left: 62px;
    top: 5px;
    }
    /* line 452, main.less */
    .grandpa .hairs .hair.hair4 {
    right: 50px;
    top: 8px;
    }
    /* line 456, main.less */
    .grandpa .hairs .hair.hair5 {
    right: 40px;
    top: 12px;
    }
    /* line 462, main.less */
    .grandpa .ear {
    20px;
    height: 20px;
    background: #f8bb9f;
    border: 1px solid #152131;
    position: absolute;
    top: 90px;
    border-radius: 50%;
    z-index: 1;
    }
    /* line 471, main.less */
    .grandpa .ear.left-ear {
    left: -10px;
    }
    /* line 474, main.less */
    .grandpa .ear.right-ear {
    right: -10px;
    }
    /* line 478, main.less */
    .grandpa .header {
    top: 10px;
    position: absolute;
    126px;
    height: 180px;
    background: #f8bb9f;
    display: block;
    border-radius: 175% 175% 150% 150%;
    z-index: 2;
    border: 1px solid #152131;
    }
    /* line 488, main.less */
    .grandpa .header:after {
    background: #f8bb9f;
    bottom: -12px;
    content: "";
    height: 10px;
    left: 50%;
    margin-left: -7px;
    position: absolute;
    14px;
    border: 1px solid #152131;
    }
    /* line 499, main.less */
    .grandpa .header .bang {
    background: #152131;
    1px;
    height: 3px;
    position: absolute;
    z-index: 1;
    top: 12px;
    }
    /* line 506, main.less */
    .grandpa .header .bang.bang1 {
    left: 50px;
    -webkit-transform: rotate(-20deg);
    -ms-transform: rotate(-20deg);
    transform: rotate(-20deg);
    }
    /* line 510, main.less */
    .grandpa .header .bang.bang2 {
    left: 63px;
    }
    /* line 513, main.less */
    .grandpa .header .bang.bang3 {
    right: 50px;
    -webkit-transform: rotate(20deg);
    -ms-transform: rotate(20deg);
    transform: rotate(20deg);
    }
    /* line 518, main.less */
    .grandpa .header .wrinkle {
    position: absolute;
    height: 1px;
    background: #152131;
    border-radius: 50%;
    }
    /* line 523, main.less */
    .grandpa .header .wrinkle.wrinkle1 {
    top: 30px;
    30px;
    left: 48px;
    }
    /* line 528, main.less */
    .grandpa .header .wrinkle.wrinkle2 {
    top: 40px;
    20px;
    left: 53px;
    }
    /* line 534, main.less */
    .grandpa .header .brow {
    position: absolute;
    top: 60px;
    50px;
    height: 30px;
    border-radius: 50%;
    background: #152131;
    }
    /* line 541, main.less */
    .grandpa .header .brow:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    60px;
    height: 30px;
    background: #f8bb9f;
    top: 1px;
    left: -1px;
    }
    /* line 551, main.less */
    .grandpa .header .brow.left-brow {
    left: 20px;
    -webkit-transform: rotate(10deg);
    -ms-transform: rotate(10deg);
    transform: rotate(10deg);
    }
    /* line 555, main.less */
    .grandpa .header .brow.right-brow {
    left: 67px;
    -webkit-transform: rotate(10deg);
    -ms-transform: rotate(10deg);
    transform: rotate(10deg);
    }
    /* line 560, main.less */
    .grandpa .header .eye {
    position: absolute;
    top: 80px;
    30px;
    height: 50px;
    border-radius: 50%;
    background: #152131;
    }
    /* line 568, main.less */
    .grandpa .header .eye:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    34px;
    height: 55px;
    background: #f8bb9f;
    top: 1px;
    left: 0px;
    }
    /* line 578, main.less */
    .grandpa .header .eye.left-eye {
    left: 20px;
    -webkit-transform: rotate(30deg);
    -ms-transform: rotate(30deg);
    transform: rotate(30deg);
    }
    /* line 583, main.less */
    .grandpa .header .eye.right-eye {
    left: 80px;
    top: 79px;
    -webkit-transform: rotate(-40deg) rotateY(160deg);
    transform: rotate(-40deg) rotateY(160deg);
    }
    /* line 589, main.less */
    .grandpa .header .nose {
    6px;
    height: 22px;
    position: absolute;
    top: 105px;
    left: 58px;
    background: #f8bb9f;
    z-index: 2;
    border: 1px solid #152131;
    border-radius: 50%;
    }
    /* line 599, main.less */
    .grandpa .header .nose:after {
    content: "";
    position: absolute;
    4px;
    height: 22px;
    top: -5px;
    left: 1px;
    background: #f8bb9f;
    }
    /* line 609, main.less */
    .grandpa .header .mouth {
    border: 1px solid #152131;
    z-index: 1;
    30px;
    height: 30px;
    background: #d96b6e;
    position: absolute;
    top: 130px;
    left: 46px;
    border-radius: 50%;
    }
    /* line 619, main.less */
    .grandpa .header .mouth:after {
    content: "";
    60px;
    height: 30px;
    background: #f8bb9f;
    position: absolute;
    top: -10px;
    left: -20px;
    border-radius: 50%;
    }
    /* line 632, main.less */
    .grandpa .clothes {
    background: #a5d1d2;
    100px;
    position: absolute;
    top: 200px;
    height: 130px;
    left: 14px;
    border-radius: 50% 50% 10% 10%;
    z-index: 2;
    border: 1px solid #152131;
    }
    /* line 642, main.less */
    .grandpa .clothes .cover {
    border-radius: 50% 50% 10% 10%;
    102px;
    height: 60px;
    background: #a5d1d2;
    position: absolute;
    top: 0;
    z-index: 3;
    }
    /* line 651, main.less */
    .grandpa .clothes .collar {
    border-radius: 50% 50% 10% 10%;
    height: 130px;
    100px;
    position: absolute;
    z-index: 4;
    background: #a5d1d2;
    overflow: hidden;
    }
    /* line 659, main.less */
    .grandpa .clothes .collar:after {
    content: "";
    position: absolute;
    40px;
    height: 40px;
    border-radius: 50%;
    background: #a5d1d2;
    left: 30px;
    top: -20px;
    border: 1px solid #152131;
    z-index: 5;
    }
    /* line 673, main.less */
    .grandpa .hand {
    z-index: 1;
    background: #a5d1d2;
    border: 1px solid #152131;
    border-radius: 90% 90% 50% 50%;
    height: 110px;
    left: -13px;
    position: absolute;
    top: 200px;
    150px;
    }
    /* line 685, main.less */
    .grandpa .trousers {
    border: 1px solid #152131;
    height: 140px;
    left: 16px;
    position: absolute;
    top: 331px;
    96px;
    background: #6c8d6e;
    }
    /* line 693, main.less */
    .grandpa .trousers:after {
    content: "";
    -webkit-transform: rotate(82deg) scale(0.825) skew(70deg) translate(0px);
    -ms-transform: rotate(82deg) scale(0.825) skew(70deg) translate(0px);
    transform: rotate(82deg) scale(0.825) skew(70deg) translate(0px);
    400px;
    background: #ffef5e;
    height: 100px;
    left: -152px;
    position: absolute;
    top: 250px;
    }
    /* line 705, main.less */
    .grandpa .footer {
    30px;
    height: 15px;
    background: #a18883;
    position: absolute;
    top: 473px;
    }
    /* line 711, main.less */
    .grandpa .footer.left-footer {
    25px;
    left: 16px;
    }
    /* line 715, main.less */
    .grandpa .footer.right-footer {
    left: 84px;
    }
    /* line 719, main.less */
    .grandpa .shoes {
    45px;
    height: 18px;
    position: absolute;
    top: 483px;
    background: #555a6d;
    }
    /* line 725, main.less */
    .grandpa .shoes.left-shoes {
    border-radius: 50% 0 30% 50%;
    left: -4px;
    -webkit-transform: rotate(-10deg);
    -ms-transform: rotate(-10deg);
    transform: rotate(-10deg);
    }
    /* line 730, main.less */
    .grandpa .shoes.right-shoes {
    border-radius: 0 50% 50% 30%;
    left: 84px;
    -webkit-transform: rotate(10deg);
    -ms-transform: rotate(10deg);
    transform: rotate(10deg);
    }

    less代码

    @keyframes eye {
    0% {
    transform:scale(1,1);
    }
    20% {
    transform:scale(1,0.1);
    }

    100% {
    transform:scale(1,1);
    }
    }
    body{
    background: #ffef5e;
    }
    body,div{
    margin: 0;
    padding: 0;
    background: #ffef5e;
    }
    .border{
    border:1px solid #152131;
    }
    .main{
    position: relative;
    700px;
    margin: 50px auto;
    }
    .me{
    position: absolute;
    top: 250px;
    left: 100px;
    z-index: 10;
    .hairs{
    background: #152131;
    190px;
    height: 250px;
    border-radius: 50% 50% 0 0;
    left: -30px;
    top: -50px;
    position: absolute;
    overflow: hidden;
    &:after{
    content: '';
    position: absolute;
    300px;
    height: 200px;
    background: #ffef5e;
    top: 120px;
    }
    .hair{
    35px;
    height: 45px;
    background: #152131;
    position: absolute;
    z-index: 1;
    transform: rotate(70deg) scale(1) skew(44deg) translate(8px);
    &.hair1{
    top: 17px;
    left: 27px;
    }
    &.hair2{
    top: 8px;
    left: 52px;
    }
    &.hair3{
    top: 4px;
    left: 73px;
    }
    &.hair4{
    top: 0;
    left: 90px;
    }
    &.hair5{
    top: 4px;
    left:108px;
    }
    &.hair6{
    top: 8px;
    left: 125px;
    }
    &.hair7{
    top: 17px;
    right: 17px;
    }
    }
    }
    .face{
    background: #fbdac7;
    130px;
    height: 100px;
    position: absolute;
    top: 0;
    border-radius: 20px 20px 50px 50px;
    &:after{ //脖子
    content: "";
    14px;
    height: 10px;
    background: #fbdac7;
    position: absolute;
    bottom:-12px;
    left: 50%;
    margin-left: -7px;
    .border;
    }
    .border;
    .brow{
    42px;
    height: 10px;
    background: #152131;
    position: absolute;
    top: 26px;
    border-radius: 50%;
    &:after{
    content: "";
    background: #fbdac7;
    position: absolute;
    50px;
    height: 10px;
    top: 1px;
    border-radius: 50%;
    }
    &.left-brow{
    left : 18px;
    transform:rotate(-10deg);
    }
    &.right-brow{
    right: 14px;
    transform:rotate(10deg);
    }
    }
    .eye{
    14px;
    height: 14px;
    border-radius: 50%;
    background: #000;
    position: absolute;
    top: 40px;
    z-index: 2;
    &.left-eye{
    left: 32%;
    }
    &.right-eye{
    right: 32%;
    //animation: eye 1s infinite ease;
    }
    }
    .blusher{
    12px;
    height: 12px;
    border-radius: 50%;
    background: #f79c99;
    position: absolute;
    top: 70px;
    &.left-blusher{
    left: 8px;
    }
    &.right-blusher{
    right: 8px;
    }
    }
    .mouth{
    .border;
    z-index: 1;
    30px;
    height: 30px;
    background: #d96b6e;
    position: absolute;
    top: 50px;
    left: 50px;
    border-radius: 50%;
    &:after{
    content: "";
    60px;
    height: 30px;
    background: #fbdac7;
    position: absolute;
    top: -10px;
    left: -20px;
    border-radius: 30%;
    }
    }
    .ear{
    10px;
    height: 20px;
    background: #fbdac7;
    position: absolute;
    top: 30px;
    z-index: 2;
    &.left-ear{
    left: -11px;
    border-radius: 5px 0 0 10px;
    }
    &.right-ear{
    right: -11px;
    border-radius: 0 5px 10px 0;
    }
    }
    }
    .clothes{
    background: #fff;
    70px;
    height: 80px;
    position: absolute;
    top:112px;
    left: 31px;
    z-index: 2;
    border-radius: 30% 30% 10px 10px;
    overflow: hidden;
    .border;
    .sleeve{
    background: #fff;
    40px;
    height: 40px;
    position: absolute;
    top: 10px;
    border-radius: 10px;
    }
    // &:before{ //左袖子
    // content: "";
    // .sleeve;
    // left: -10px;
    // transform:rotate(50deg);
    // }
    // &:after{ //右袖子
    // content :"";
    // .sleeve;
    // right: -10px;
    // transform:rotate(-50deg);
    // }
    .collar{
    z-index: 3;
    position: absolute;
    .border;
    20px;
    height: 10px;
    background: #fff;
    &.left-collar{
    left: 12px;
    transform:rotate(50deg);
    }
    &.right-collar{
    right: 12px;
    transform:rotate(-50deg);
    }
    }
    .straps{
    z-index: 2;
    position: absolute;
    6px;
    height: 100px;
    background: #e9003a;
    .border;
    &.left-straps{
    left: 12px;
    }
    &.right-straps{
    right: 12px;
    }
    }
    }
    .arm{
    70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    .border;
    z-index: 1;
    position: absolute;
    top: 115px;
    z-index: 0;
    &.left-arm{
    left: 10px;
    &:after{
    content: "";
    position: absolute;
    background:#ffef5e;
    60px;
    height: 60px;
    left: 12px;
    top: 5px;
    border-radius: 50%;
    .border;
    }
    }
    &.right-arm{
    left: 52px;
    &:after{
    content: "";
    position: absolute;
    background:#ffef5e;
    60px;
    height: 60px;
    left: -4px;
    top: 5px;
    border-radius: 50%;
    .border;
    }
    }
    }
    .belt{
    background: #ed023a;
    border: 1px solid #152131;
    height: 10px;
    left: 31px;
    position: absolute;
    top: 182px;
    70px;
    z-index: 3;
    }
    .skirt{
    background: #ed023a;
    position: absolute;
    background: none;
    border-color: #e9003a transparent;
    border-image: none;
    border-style: solid;
    border- 0px 30px 50px;
    height: 0;
    left: 1px;
    position: absolute;
    top: 194px;
    72px;
    z-index: 3;
    border-radius: 0 0 50% 50%;
    .line{
    1px;
    height: 30px;
    position: absolute;
    background: #000;
    top:10px;
    transform-origin:0 0;
    &.line1{
    left: 10px;
    transform:rotate(20deg);
    }
    &.line2{
    left: 25px;
    transform:rotate(10deg);
    }
    &.line3{
    left: 35px;
    }
    &.line4{
    right: 25px;
    transform:rotate(-10deg);
    }
    &.line5{
    right: 10px;
    transform:rotate(-20deg);
    }
    }
    }
    .leg{
    12px;
    height: 40px;
    background: #fadbc7;
    .border;
    position: absolute;
    top: 220px;
    z-index: 2;
    &.left-leg{
    left: 40px;
    }
    &.right-leg{
    left: 78px;
    }
    &:after{
    content: '';
    12px;
    height: 16px;
    background: #fff;
    .border;
    border-bottom: 0;
    top: 40px;
    left: -1px;
    position: absolute;
    }
    }
    .stockings{
    28px;
    height: 12px;
    background: #fff;
    .border;
    position: absolute;
    z-index: 1;
    transform-origin:0 0;
    &.left-stockings{
    left: 21px;
    top: 275px;
    transform:rotate(-20deg);
    border-radius: 50% 0 0 50%;
    }
    &.right-stockings{
    left: 83px;
    top: 265px;
    transform:rotate(20deg);
    border-radius: 0 50% 50% 0;
    }
    }
    .shoes{
    40px;
    height: 17px;
    position: absolute;
    z-index: 0;
    background: #a23030;
    transform-origin:0 0;
    border-radius: 50%;
    &.left-shoes{
    left: 13px;
    top: 280px;
    transform:rotate(-20deg);
    border-radius: 50% 0 0 50%;
    }
    &.right-shoes{
    left: 81px;
    top: 267px;
    transform:rotate(20deg);
    border-radius: 0 50% 50% 0;
    }
    }
    }

    .grandpa{
    position: absolute;
    top: 40px;
    left: 280px;
    z-index: 10;
    126px;
    .hairs{
    position: absolute;

    z-index: 3;
    126px;
    .hair{
    background: #152131;
    1px;
    height: 5px;
    position: absolute;
    &.hair1{
    left: 40px;
    top: 12px;
    }
    &.hair2{
    left: 50px;
    top: 8px;
    }
    &.hair3{
    left: 62px;
    top: 5px;
    }
    &.hair4{
    right: 50px;
    top: 8px;
    }
    &.hair5{
    right: 40px;
    top: 12px;
    }
    }
    }
    .ear{
    20px;
    height: 20px;
    background: #f8bb9f;
    .border;
    position: absolute;
    top: 90px;
    border-radius: 50%;
    z-index: 1;
    &.left-ear{
    left: -10px;
    }
    &.right-ear{
    right: -10px;
    }
    }
    .header{
    top: 10px;
    position: absolute;
    126px;
    height: 180px;
    background: #f8bb9f;
    display: block;
    border-radius: 175% 175% 150% 150%;
    z-index: 2;
    .border;
    &:after{
    background: #f8bb9f;
    bottom: -12px;
    content: "";
    height: 10px;
    left: 50%;
    margin-left: -7px;
    position: absolute;
    14px;
    .border;
    }
    .bang{
    background: #152131;
    1px;
    height: 3px;
    position: absolute;
    z-index: 1;
    top: 12px;
    &.bang1{
    left: 50px;
    transform:rotate(-20deg);
    }
    &.bang2{
    left: 63px;
    }
    &.bang3{
    right:50px;
    transform:rotate(20deg);
    }
    }
    .wrinkle{
    position: absolute;
    height: 1px;
    background: #152131;
    border-radius: 50%;
    &.wrinkle1{
    top: 30px;
    30px;
    left: 48px;
    }
    &.wrinkle2{
    top: 40px;
    20px;
    left: 53px;
    }
    }
    .brow{
    position: absolute;
    top: 60px;
    50px;
    height: 30px;
    border-radius: 50%;
    background: #152131;
    &:after{
    content: "";
    position: absolute;
    border-radius: 50%;
    60px;
    height: 30px;
    background: #f8bb9f;
    top: 1px;
    left: -1px;
    }
    &.left-brow{
    left: 20px;
    transform:rotate(10deg);
    }
    &.right-brow{
    left: 67px;
    transform:rotate(10deg);
    }
    }
    .eye{
    position: absolute;
    top: 80px;
    30px;
    height: 50px;
    border-radius: 50%;
    background: #152131;

    &:after{
    content: "";
    position: absolute;
    border-radius: 50%;
    34px;
    height: 55px;
    background: #f8bb9f;
    top: 1px;
    left: 0px;
    }
    &.left-eye{
    left: 20px;
    transform:rotate(30deg);

    }
    &.right-eye{
    left: 80px;
    top: 79px;
    transform: rotate(-40deg) rotateY(160deg);
    }
    }
    .nose{
    6px;
    height: 22px;
    position: absolute;
    top: 105px;
    left: 58px;
    background: #f8bb9f;
    z-index: 2;
    .border;
    border-radius: 50%;
    &:after{
    content: "";
    position: absolute;
    4px;
    height: 22px;
    top: -5px;
    left: 1px;
    background: #f8bb9f;
    }
    }
    .mouth{
    .border;
    z-index: 1;
    30px;
    height: 30px;
    background: #d96b6e;
    position: absolute;
    top: 130px;
    left: 46px;
    border-radius: 50%;
    &:after{
    content: "";
    60px;
    height: 30px;
    background: #f8bb9f;
    position: absolute;
    top: -10px;
    left: -20px;
    border-radius: 50%;
    }
    }
    }

    .clothes{
    background: #a5d1d2;
    100px;
    position: absolute;
    top: 200px;
    height: 130px;
    left: 14px;
    border-radius: 50% 50% 10% 10%;
    z-index: 2;
    .border;
    .cover{
    border-radius: 50% 50% 10% 10%;
    102px;
    height: 60px;
    background: #a5d1d2;
    position: absolute;
    top: 0;
    z-index: 3;
    }
    .collar{
    border-radius: 50% 50% 10% 10%;
    height: 130px;
    100px;
    position: absolute;
    z-index: 4;
    background: #a5d1d2;
    overflow: hidden;
    &:after{
    content: "";
    position: absolute;
    40px;
    height: 40px;
    border-radius: 50%;
    background: #a5d1d2;
    left: 30px;
    top: -20px;
    .border;
    z-index: 5;
    }
    }
    }
    .hand{
    .border;
    z-index: 1;
    background: #a5d1d2;
    border: 1px solid #152131;
    border-radius: 90% 90% 50% 50%;
    height: 110px;
    left: -13px;
    position: absolute;
    top: 200px;
    150px;
    }
    .trousers{
    .border;
    height: 140px;
    left: 16px;
    position: absolute;
    top: 331px;
    96px;
    background: #6c8d6e;
    &:after{
    content: "";
    transform: rotate(82deg) scale(0.825) skew(70deg) translate(0px);
    height: 100px;
    400px;
    background: #ffef5e;
    height: 100px;
    left: -152px;
    position: absolute;
    top: 250px;
    }
    }
    .footer{
    30px;
    height: 15px;
    background: #a18883;
    position: absolute;
    top: 473px;
    &.left-footer{
    25px;
    left: 16px;
    }
    &.right-footer{
    left: 84px;
    }
    }
    .shoes{
    45px;
    height: 18px;
    position: absolute;
    top: 483px;
    background: #555a6d;
    &.left-shoes{
    border-radius: 50% 0 30% 50%;
    left: -4px;
    transform:rotate(-10deg);
    }
    &.right-shoes{
    border-radius: 0 50% 50% 30%;
    left: 84px;
    transform:rotate(10deg);
    }
    }
    }

  • 相关阅读:
    修改root密码
    环境的搭建(四)--------samba服务
    16.统一异常处理(上)编写自定义处理函数
    15.集成限流功能到我们的服务中(花操作必看)
    14.go内置的rate包学习2(有花操作,必看)
    13.go内置的rate包学习1
    12.使用负载均衡的方式调用服务(随机方式)
    11.使用负载均衡的方式调用服务(轮询方式)
    10.根据命令行参数注册多个服务
    9.consul获取服务实例,调用测试
  • 原文地址:https://www.cnblogs.com/zengzhaoguang/p/5488906.html
Copyright © 2020-2023  润新知