css3写的android logo_html/css_WEB-ITnose

php中文网
发布: 2016-06-21 09:14:38
原创
1020人浏览过

<!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>
登录后复制

HTML速学教程(入门课程)
HTML速学教程(入门课程)

HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号