利用H5、C3画蓝胖子

画叮当猫主要运用border-radius及定位,可复制代码查看具体效果

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title> 蓝胖子 </title>
    </head>
    <style type="text/css">
        *{
            margin: 0;
            padding: 0;
        }
        .wrap{
            width: 800px;
            margin: 50px auto;
            background: #fff;
            position: relative;
        }
        header{
            margin: 0 auto;
            width: 500px;
            height: 440px;
            background: #00b7e7;
            border-radius: 50%;
            border: 1px solid red;
            position: relative;
        }
        .eyeLeft , .eyeRight{
            width: 100px;
            height: 130px;
            border-radius: 50px;
            background: #fff;
            border: 2px solid #000;
            position: absolute;
            top: 50px;
            z-index: 3;
        }
        .eyeLeft{
            left: 146px;
        }
        .eyeRight{
            left: 250px;
        }
        .eyeBallL , .eyeBallR{
            width: 20px;
            height: 20px;
            background: #000;
            border-radius: 50%;
            position: absolute;
            top: 65px;
            z-index: 3;
        }
        .eyeBallL{
            right: 10px;
        }
        .eyeBallR{
            left: 10px;
        }
        .face{
            position: relative;
            z-index: 2;
        }
        .face .white{
            width: 400px;
            height: 320px;
            border-radius: 50%;
            background: #fff;
            position: absolute;
            top: 100px;
            left: 50px;
        }
        .face .nose{
            width: 45px;
            height: 50px;
            border-radius: 23px;
            background: #cf3318;
            border: 2px solid #000;
            position: absolute;
            top: 165px;
            left: 225px;
        }
        .face .line{
            width: 3px;
            height: 160px;
            background: #000;
            position: absolute;
            top: 218px;
            left: 248px;
        }
        .face .mouth{
            width: 280px;
            height: 280px;
            border-radius: 50%;
            border-bottom: 5px solid #000;
            position: absolute;
            top: 98px;
            left: 105px;
        }
        .face .beard .all{
            width: 80px;
            height: 2px;
            background: #000;
            position: absolute;
            z-index: 2;
        }
        .face .beard .left{
            left: 115px;
        }
        .face .beard .right{
            left: 295px;
        }
        .face .beard .top , .face .beard .one{
            top:220px ;
        }
        .face .beard .center , .face .beard .two{
            top: 240px;
        }
        .face .beard .bottom , .face .beard .thr{
            top:260px ;
        }
        .face .beard .top , .face .beard .thr{
            transform: rotate(160deg);
        } 
        .face .beard .bottom , .face .beard .one{
            transform: rotate(200deg);
        } 
        .neck {
                width: 300px;
                height: 30px;
                background-color: #a31f12;
                border: 2px solid black;
                border-radius: 15px;
                position: relative;
                top: -30px;;
                left: 250px;
                z-index: 4;
            }
            .neck .bell {
                width: 60px;
                height: 60px;
                overflow: hidden;
                border: 2px solid black;
                border-radius: 60px;
                background-color: #cfcb3c;
                position: absolute;
                top: 5px;
                left: 120px;
            }
            .bell .Bline {
                width: 60px;
                height: 2px;
                background-color: #cfcb3c;
                border: 2px solid black;
                border-radius: 3px 3px 0 0;
                position: absolute;
                top: 15px;
            }
            .bell .Bcircle {
                width: 20px;
                height: 16px;
                background: black;
                border-radius: 8px;
                position: absolute;
                top: 25px;
                left: 20px;
            }
            .bell .Bunderpart {
                width: 3px;
                height: 20px;
                background-color: black;
                position: absolute;
                left: 28px;
                top: 40px;
            }
            .body {
                position: relative;
                top: -300px;
                z-index: 1;
            }
            .body .tummy {
                width: 280px;
                height: 240px;
                background-color: #00b1e1;
                border: 2px solid black;
                position: absolute;
                top: 267px;
                left: 260px;
            }
            .body .bellyband {
                width: 220px;
                height: 220px;
                background-color: #fff;
                border: 2px solid black;
                border-radius: 110px;
                position: absolute;
                left: 290px;
                top: 267px;
            }
            .body .pocket {
                width: 160px;
                height: 160px;
                border-radius: 80px;
                background-color: #fff;
                border: 2px solid black;
                position: absolute;
                top: 305px;
                left: 320px;
            }
            .cover {
                width: 164px;
                height: 80px;
                background-color: #fff;
                border-bottom: 2px solid black;
                /*border: 5px solid orange;*/
                position: absolute;
                top: 300px;
                left: 320px;
            }
            .left_hand,.right_hand {
                height: 100px;
                width: 100px;
                position: absolute;
                top: 272px;
                left: 248px;
            }
            .left_hand {
                left: -10px;
            }
            .left_hand .Larm {
                width: 70px;
                height: 100px;
                background-color: #00bee8;
                border: 1px solid black;
                position: relative;
                top: 200px;
                left: 535px;
                transform: rotateZ(135deg);

            }
            .right_hand {
                left: -10px;
            }
            .right_hand .Rarm {
                width: 70px;
                height: 100px;
                background-color: #00bee8;
                border: 1px solid black;
                position: relative;
                top: 200px;
                left: 215px;
                transform: rotateZ(45deg);
            }
            .left_hand .Lpalm,.right_hand .Rpalm {
                width: 80px;
                height: 80px;
                border-radius: 40px;
                border: 2px solid black;
                background-color: #fff;
                position: absolute;
            }
            .right_hand .Rpalm {
                left: 580px;
                top: 260px;
                z-index: 1;
            }
            .left_hand .Lpalm {
                left: 160px;
                top: 260px;
                z-index: 1;
            }
            .foot .left_foot,.foot .right_foot {
                width: 150px;
                height: 40px;
                background-color: #fff;
                border: 2px solid black;
                border-radius: 80px 60px 60px 40px;
                position: relative;
            }
            .foot .left_foot {
                left: 240px;
                top: 210px;
            }
            .foot .right_foot {
                top: 165px;
                left: 410px;
            }
            .foot .crotch {
                width: 40px;
                height: 20px;
                background-color: #fff;
                border: 2px solid black;
                border-bottom: none;
                border-radius: 40px 40px 0 0;
                position: relative;
                top: 103px;
                left: 382px;
                z-index: 2
            }
    </style>
    <body>
        <div class="wrap">
            <!-- 头 -->
            <header>
                    <!-- 眼 -->
                <div class="eyes">
                        <!-- 左眼 -->
                    <div class="eyeLeft">
                            <!-- 左眼球 -->
                        <div class="eyeBallL"></div>
                    </div>
                        <!-- 右眼 -->
                    <div class="eyeRight">
                            <!-- 右眼球-->
                        <div class="eyeBallR"></div>
                    </div>
                </div>
                <!-- 脸 -->
                <div class="face">
                    <!-- 脸型白色 -->
                    <div class="white"></div>
                    <!-- 鼻 -->
                    <div class="nose"></div>
                    <!-- 鼻梁 -->
                    <div class="line"></div>
                    <!-- 嘴 -->                  
                    <div class="mouth"></div>
                    <!-- 胡须 -->
                    <div class="beard">
                        <!--左胡须-->
                        <div class="one left all"></div>
                        <div class="two left all"></div>
                        <div class="thr left all"></div>
                        <!--右胡须-->
                        <div class="top right all"></div>
                        <div class="center right all"></div>
                        <div class="bottom right all"></div>
                    </div>
                </div>
            </header>
            <!-- 脖子 -->
                <div class="neck">
                    <!-- 铃铛 -->
                    <div class="bell">
                        <div class="Bline"></div>
                        <div class="Bcircle"></div>
                        <div class="Bunderpart"></div>
                    </div>
                </div>
                <!-- 身体 -->
                <div class="body">
                    <!-- 肚子 -->
                    <div class="tummy"></div>
                    <!-- 肚兜 -->
                    <div class="bellyband"></div>
                    <!-- 口袋 -->
                    <div class="pocket"></div>
                    <div class="cover"></div>
                </div>
                <!-- 左手 -->
                <div class="left_hand">
                    <!-- 手臂 -->
                    <div class="Larm"></div>
                    <!-- 手掌 -->
                    <div class="Lpalm"></div>
                </div>
                <!-- 右手 -->
                <div class="right_hand">
                    <!-- 手臂 -->
                    <div class="Rarm"></div>
                    <!-- 手掌 -->
                    <div class="Rpalm"></div>
                </div>
                <!-- 脚 -->
                <div class="foot">
                    <!-- 左脚 -->
                    <div class="left_foot"></div>
                    <!-- 右脚 -->
                    <div class="right_foot"></div>
                    <div class="crotch"></div>
                </div>
            </div>
        </div>
    </body>
</html>

效果图如下:

Paste_Image.png
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 199,064评论 5 466
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 83,606评论 2 376
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 146,011评论 0 328
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 53,550评论 1 269
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 62,465评论 5 359
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 47,919评论 1 275
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,428评论 3 390
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,075评论 0 254
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,208评论 1 294
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,185评论 2 317
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,191评论 1 328
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 32,914评论 3 316
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,482评论 3 302
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,585评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,825评论 1 255
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 42,194评论 2 344
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 41,703评论 2 339

推荐阅读更多精彩内容

  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 171,229评论 25 707
  • 1、属性选择器:id选择器 # 通过id 来选择类名选择器 . 通过类名来选择属性选择器 ...
    Yuann阅读 1,610评论 0 7
  • 精进 真实的畅所欲谈,对象很重要 感受 很多朋友是一个阶段的,可以分享的故事也有阶段性的 收获 重新遇见小时候的玩...
    若兰ZHOU阅读 150评论 0 1
  • 做为父母,我们都想培养孩子一些兴趣爱好,可是让孩子感兴趣却成了难题。有些孩子,兴趣是天生的,有些孩子,兴趣需要引导...
    sunnyok阅读 1,845评论 0 1
  • 01 爱没有高低,但爱的方式有。最低的爱就是徒有一颗真心却不学习怎样合适的表达。 02 正确的表达爱意,需要你关注...
    一朵花的理想国阅读 297评论 0 1