首页 > web前端 > html教程 > css3写的android logo_html/css_WEB-ITnose

css3写的android logo_html/css_WEB-ITnose

WBOY
发布: 2016-06-21 09:14:38
原创
926 人浏览过

<!DOCTYPE html><html>    <head>        <meta charset="utf-8">        <title>android</title>        <style type="text/css">        *{            margin: 0;            padding: 0;        }        div.head{            margin-top: 100px;            margin-left: 200px;            width: 200px;            height: 100px;            background: greenyellow;            border-top-left-radius: 100px;            border-top-right-radius: 100px;            position: relative;        }        div.head:after{            content:"";            position: absolute;            top: 50px;            left: 50px;            width: 20px;            height: 20px;            background: white;            border-radius: 10px;        }        div.head:before{            content:"";            position: absolute;            top: 50px;            right: 50px;            width: 20px;            height: 20px;            background: white;            border-radius: 10px;        }        div.left-ear{            width: 10px;            height: 50px;            background: greenyellow;            position: absolute;            left: 30px;            top: -30px;            transform: rotate(-30deg);            -webkit-transform: rotate(-30deg);            -ms-transform: rotate(-30deg);        }        div.right-ear{            width: 10px;            height: 50px;            background: greenyellow;            position: absolute;            right: 30px;            top: -30px;            transform: rotate(30deg);            -webkit-transform: rotate(30deg);            -ms-transform: rotate(30deg);        }        div.body{            width: 200px;            height: 200px;            background: greenyellow;            margin-top: 10px;            margin-left: 200px;            border-bottom-right-radius: 100px;            border-bottom-left-radius: 100px;            position: relative;        }        div.body:after{            content:"";            position: absolute;            top:0;            left: -40px;            width: 30px;            height: 130px;            background: greenyellow;            border-radius: 20px;        }        div.body:before{            content:"";            position: absolute;            top:0;            right: -40px;            width: 30px;            height: 130px;            background: greenyellow;            border-radius: 20px;        }        div.body_1{             width: 50px;             height: 50px;             background: white;             position: absolute;             top: 50px;             left: 70px;            transform: rotate(45deg);            -moz-transform: rotate(45deg);            -webkit-transform: rotate(45deg);            -ms-transform: rotate(45deg);            box-shadow: 0px 0px 50px #ADFF2F;        }        div.left_foot{            width: 30px;            height: 100px;            background: greenyellow;            position: absolute;            top:150px;            left:20px;            border-radius: 20px;            z-index: -1;        }        div.right_foot{            width: 30px;            height: 100px;            background: greenyellow;            position: absolute;            top:150px;            right:20px;            border-radius: 20px;            z-index: -1;        }        @-webkit-keyframes eye{            0%   {background-color: red;}            25%  {background-color: yellow;}            50%  {background-color: blue;}            100% {background-color: green;}        }        @keyframes eye{            0%   {background-color: red;}            25%  {background-color: yellow;}            50%  {background-color: blue;}            100% {background-color: green;}        }        div.body:hover{            -webkit-animation-name: eye;            -webkit-animation-duration: 1s;            animation-name: eye;            animation-duration: 1s;            animation-iteration-count: infinite;            -webkit-animation-iteration-count: infinite;;        }        </style>    </head>    <body>        <div class="head">            <div class="left-ear"></div>            <div class="right-ear"></div>        </div>        <div class="body">            <div class="body_1"></div>            <div class="left_foot"></div>            <div class="right_foot"></div>        </div>    </body></html>
登录后复制

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板