zoukankan      html  css  js  c++  java
  • css3小叮当(转载)

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <style>
    *{margin:0; padding:0;}
    ul{list-style:none;}
    .con_box{500px; height:500px; margin:50px auto 0; background:#ccc;}

    /*头*/
    .head{200px; height:200px; border:1px solid #222; border-radius:50%; margin:0 auto; background:-moz-linear-gradient(60deg,#0c4a64 0%,#04a6dc 40%,#1cc6ec 100%); background:-webkit-linear-gradient(60deg,#0c4a64 0%,#04a6dc 40%,#1cc6ec 100%); background:-o-linear-gradient(60deg,#0c4a64 0%,#04a6dc 40%,#1cc6ec 100%); position:relative; z-index:1;}

    /*脸*/
    .face{170px; height:130px; border:1px solid #222; border-radius:50%; background:-moz-linear-gradient(60deg,#94969c 0%,#dcdedc 15%,#fff 30%); background:-webkit-linear-gradient(60deg,#94969c 0%,#dcdedc 15%,#fff 30%); background:-o-linear-gradient(60deg,#94969c 0%,#dcdedc 15%,#fff 30%); position:absolute; bottom:10px; left:15px;}

    /*嘴巴*/
    .mouse{100px; height:40px; border-bottom:2px solid #222; border-radius:50%; position:absolute; bottom:20px; left:35px;}
    .mouse:after{2px; height:67px; background:#222; content:""; position:absolute; bottom:0; left:49px;}

    /*鼻子*/
    .nose{20px; height:20px; border:1px solid #222; border-radius:50%; background:-moz-radial-gradient(70% 30%,farthest-side,#fff,#c43a04,#dc3900); background:-webkit-radial-gradient(70% 30%,farthest-side,#fff,#c43a04,#dc3900); background:-o-radial-gradient(70% 30%,farthest-side,#fff,#c43a04,#dc3900); position:absolute; top:20px; left:74px;}

    /*胡须*/
    .hair{133px; height:60px; position:absolute; top:30px; left:18px;}
    .left_hair{60px; position:absolute; top:10px; left:0; background:#0f0;}
    .right_hair{60px; position:absolute; top:10px; right:0;}
    .left_hair ul li, .right_hair ul li{45px; height:1px; background:#222; position:absolute; margin:}
    .lh1{top:5px; left:5px; transform:rotate(20deg);}
    .lh2{top:20px; left:5px;}
    .lh3{top:35px; left:5px; transform:rotate(-20deg);}

    .rh1{top:5px; right:5px; transform:rotate(160deg);}
    .rh2{top:20px; right:5px;}
    .rh3{top:35px; right:5px; transform:rotate(-160deg);}

    /*眼睛*/
    .eyes{100px; height:60px; position:absolute; top:38px; left:50px;}
    .left_eye{48px; height:50px; border:1px solid #222; border-radius:50%; background:#fff; position:relative; float:left;}
    .left_eye:after{10px; height:10px; background:-moz-radial-gradient(60% 60%,farthest-side,#fff 0%,#222 50%); background:-webkit-radial-gradient(60% 60%,farthest-side,#fff 0%,#222 50%); background:-o-radial-gradient(60% 60%,farthest-side,#fff 0%,#222 50%); border-radius:50%; content:""; position:absolute; bottom:10px; right:10px;}
    .right_eye{48px; height:50px; border:1px solid #222; border-radius:50%; background:#fff; position:relative; float:right;}
    .right_eye:after{10px; height:10px; background:-moz-radial-gradient(60% 60%,farthest-side,#fff 0%,#222 50%); background:-webkit-radial-gradient(60% 60%,farthest-side,#fff 0%,#222 50%); background:-o-radial-gradient(60% 60%,farthest-side,#fff 0%,#222 50%); border-radius:50%; content:""; position:absolute; bottom:10px; left:10px;}


    /*身体*/
    .body{250px; height:135px; position:relative; z-index:2; margin:-20px auto 0;}
    .nab{120px; height:13px; border:1px solid #222; border-radius:13px; background:-moz-linear-gradient(top,#ac2a04 0%,#c43a04 20%,#941204 100%); background:-webkit-linear-gradient(top,#ac2a04 0%,#c43a04 20%,#941204 100%); background:-o-linear-gradient(top,#ac2a04 0%,#c43a04 20%,#941204 100%); position:absolute; top:0; left:64px; z-index:999;}

    /*左手*/
    .lhand{position:absolute; left:35px; top:0; z-index:1;}
    .larm{35px; height:95px; background:-moz-linear-gradient(50deg,#047294 0%,#048eb4 100%); background:-webkit-linear-gradient(50deg,#047294 0%,#048eb4 100%); transform:rotate(50deg); background:-o-linear-gradient(50deg,#047294 0%,#048eb4 100%); border:1px solid #222; border-top:none;}
    .l_hand{46px; height:46px; border:1px solid #222; border-radius:50%; background:-moz-linear-gradient(60deg,#d4cecc 0%,#fff 50%); background:-webkit-linear-gradient(60deg,#d4cecc 0%,#fff 50%); background:-o-linear-gradient(60deg,#d4cecc 0%,#fff 50%); position:absolute; bottom:0; right:25px;}

    /*右手*/
    .rhand{position:absolute; right:35px; top:0; z-index:1;}
    .rarm{35px; height:95px; border:1px solid #222; border-top:none; background:#0cc6ec; transform:rotate(-50deg);}
    .r_hand{46px; height:46px; border:1px solid #222; border-radius:50%; background:-moz-linear-gradient(60deg,#d4cecc 0%,#fff 50%); background:-webkit-linear-gradient(60deg,#d4cecc 0%,#fff 50%); background:-o-linear-gradient(60deg,#d4cecc 0%,#fff 50%); position:absolute; bottom:0; left:25px;}

    /*身体*/
    .bell_top{110px; height:40px; background:-moz-linear-gradient(left,#0484a8,#0cc6ec); background:-webkit-linear-gradient(left,#0484a8,#0cc6ec); background:-o-linear-gradient(left,#0484a8,#0cc6ec); position:absolute; top:15px; left:70px; z-index:2;}
    .belly{140px; height:80px; border:1px solid #222; border-top:none; background:-moz-linear-gradient(left,#0480a4 0%,#0485a9 15%,#08add2 55%,#0abce2 70%,#0cc6ec 100%); background:-webkit-linear-gradient(left,#0480a4 0%,#0485a9 15%,#08add2 55%,#0abce2 70%,#0cc6ec 100%); background:-o-linear-gradient(left,#0480a4 0%,#0485a9 15%,#08add2 55%,#0abce2 70%,#0cc6ec 100%); position:absolute; top:55px; left:54px; z-index:10;}
    .belly:after{20px; height:10px; content:""; background:#ccc; position:absolute; bottom:-1px; left:60px; border-top:1px solid #222; border-radius:20px 20px 0 0;}
    .bag{100px; height:100px; border:1px solid #222; border-radius:50%; background:#fff; position:absolute; top:0; left:75px; z-index:20;}
    .bag:after{80px; height:40px; border:1px solid #222; border-radius:0 0 80px 80px; content:""; position:absolute; bottom:10px; left:10px;}

    /*铃铛*/
    .bell{30px; height:30px; border:1px solid #222; border-radius:50%; background:-moz-radial-gradient(70% 30%,farthest-side,#fff,#fdeb6f,#dcc20d); background:-webkit-radial-gradient(70% 30%,farthest-side,#fff,#fdeb6f,#dcc20d); background:-o-radial-gradient(70% 30%,farthest-side,#fff,#fdeb6f,#dcc20d); position:absolute; top:5px; left:110px; z-index:9999;}
    .bell:before{26px; height:2px; background:#222; content:""; position:absolute; top:5px; left:2px;}
    .bell:after{30px; height:2px; background:#222; content:""; position:absolute; top:10px; left:0;}
    .center{2px; height:8px; background:#222; position:absolute; bottom:0; left:14px;}
    .center:after{8px; height:8px; background:#222; border-radius:50%; content:""; position:absolute; bottom:8px; left:-3px;}
    .footer{200px; margin:0 auto; position:relative;}
    .footer:before{80px; height:25px; background:-moz-linear-gradient(50deg,#ADADAD 0%,#fff 40%); background:-webkit-linear-gradient(50deg,#ADADAD 0%,#fff 40%); background:-o-linear-gradient(50deg,#ADADAD 0%,#fff 40%); border:1px solid #222; border-radius:80px 50px 50px 40px; content:""; position:absolute; top:0; left:15px;}
    .footer:after{80px; height:25px; background:-moz-linear-gradient(-50deg,#fff 60%,#ADADAD 100%); background:-webkit-linear-gradient(-50deg,#fff 60%,#ADADAD 100%); background:-o-linear-gradient(-50deg,#fff 60%,#ADADAD 100%); border:1px solid #222; border-radius:50px 80px 40px 50px; content:""; position:absolute; top:0; right:15px;}
    </style>
    </head>

    <body>
    <div class="con_box">
    <!-- 头部 -->
    <div class="head">
    <div class="face">
    <div class="mouse"></div>
    <div class="nose"></div>
    <div class="hair">
    <div class="left_hair">
    <ul>
    <li class="lh1"></li>
    <li class="lh2"></li>
    <li class="lh3"></li>
    </ul>
    </div>
    <div class="right_hair">
    <ul>
    <li class="rh1"></li>
    <li class="rh2"></li>
    <li class="rh3"></li>
    </ul>
    </div>
    </div>
    </div>
    <div class="eyes">
    <div class="left_eye"></div>
    <div class="right_eye"></div>
    <br clear="all" />
    </div>

    </div>

    <!-- 身体 -->
    <div class="body">
    <div class="nab"></div>
    <div class="lhand">
    <div class="larm"></div>
    <div class="l_hand"></div>
    </div>
    <div class="rhand">
    <div class="rarm"></div>
    <div class="r_hand"></div>
    </div>
    <div class="bell_top"></div>
    <div class="belly"></div>
    <div class="bag"></div>
    <div class="bell">
    <div class="center"></div>
    </div>
    </div>
    <div class="footer"></div>

    </div>


    </body>
    </html>

  • 相关阅读:
    Elastic Stack之FileBeat使用实战
    Elastic Stack之Logstash进阶
    Elastic Stack之Logstash
    Elastic Stack之Elasticsearch 5.6.12 集群部署实战
    CentOS安装操作系统级初始优化
    Elastic Stack之搜索引擎基础
    ansible基础-ansible角色的使用
    ansible基础-playbook剧本的使用
    ansible基础-ansible的安装和常用模块介绍
    运维开发笔记整理-使用序列化
  • 原文地址:https://www.cnblogs.com/dingyufenglian/p/4892464.html
Copyright © 2011-2022 走看看