使用css3实现多啦A梦代码

这篇文章主要为大家介绍使用css3实现多啦a梦代码,具有一定的参考价值,感兴趣的小伙伴们可以参考一下

        Document

    .doraemon{        position: relative;        width:500px;        margin:0 auto;    }    .doraemon .head{        width:320px;        height: 300px;        border-radius: 150px;        background: #07bbee;        background: -webkit-radial-gradient(right top,#fff 10%,#07bbee 20%,#10a6ce 75%,#000);        background: -moz-radial-gradient(right top,#fff 10%,#07bbee 20%,#10a6ce 75%,#000);        background: -ms-radial-gradient(right top,#fff 10%,#07bbee 20%,#10a6ce 75%,#000);        border:#555 2px solid;        box-shadow: -5px 10px 15px rgba(0,0,0,0.45);        position: relative;    }    /*眼睛*/    .doraemon .eyes{        position:relative;    }    .doraemon .eyes .eye{        width:72px;        height: 82px;        position:absolute;        top:40px;        background: #fff;        border: 2px solid #000;        border-radius: 35px 35px;        z-index: 10;    }    .doraemon .eyes .eye .black{        width:14px;        height: 14px;        background: #000;        border-radius:14px;        position: relative;        top:40px;    }    .doraemon .eyes .left{        left:82px;    }    .doraemon .eyes .right{        left:156px;    }    .doraemon .eyes .eye .bleft{        left: 50px;    }    .doraemon .eyes .eye .bright{        left:7px;    }    .doraemon .face{        position: relative;        z-index: 2;    }    /*自然底色*/    .doraemon .face .white{        border:2px #000 solid;        width:265px;        height: 195px;        border-radius: 150px 150px;        position:absolute;        top:75px;        left:25px;        background: #fff;        background: -webkit-radial-gradient(right top,#fff 75%,#eee 80%,#999 90%,#444);        background: -moz-radial-gradient(right top,#fff 75%,#eee 80%,#999 90%,#444);        background: -ms-radial-gradient(right top,#fff 75%,#eee 80%,#999 90%,#444);    }    /*鼻子*/    .doraemon .face .nose{        width:30px;        height: 30px;        background: #c93300;        border:2px solid #000;        border-radius: 30px;        position:absolute;        top:110px;        left:140px;        z-index: 3;    }    /*鼻子上面的光*/    .doraemon .face .nose .light{        border-radius: 5px ;        box-shadow: 19px 8px 5px #fff;        height: 10px ;        width:10px;    }    /*鼻子下面的线*/    .doraemon .face .nose_line {        width:3px;        height: 100px;        background: #333;        position:absolute;        top:143px;        left:155px;        z-index: 3;    }    /*嘴巴*/    .doraemon .face .mouth{        width:220px;        height: 400px;        border-bottom: 3px solid #333;        border-radius: 120px;        position:absolute;        top:-160px;        left: 45px;    }    /*胡须*/    .doraemon .whiskers{        background: #fff;        width:220px;        height: 80px;        position:relative;        top:120px;        left:45px;        border-radius: 15px;        z-index: 2;    }    .doraemon .whiskers .whisker{        background: #333;        height: 2px;        width:60px;        position: absolute;        z-index: 2;    }    .doraemon .whiskers .rTop{        left:165px;        top: 25px;    }    .doraemon .whiskers .rt{        left: 167px;        top:45px;    }    .doraemon .whiskers .rBottom{        left: 165px;        top: 65px;    }    .doraemon .whiskers .lTop{        left:0;        top:25px;    }    .doraemon .whiskers .lt{        top:45px;        left:-2px;    }    .doraemon .whiskers .lBottom{        top:65px;        left:0;    }    .doraemon .whiskers .r160 {        transform: rotate(160deg);        -webkit-transform: rotate(160deg);    }    .doraemon .whiskers .r20{        transform: rotate(20deg);        -webkit-transform: rotate(20deg);    }    /*围脖*/.doraemon .choker{    position: relative;z-index:4;    top: -40px;left: 45px;    background:#C40;    /*线性渐变 让围巾看上去更自然*/    background: -webkit-gradient(linear,left top,left bottom,from(#C40),to(#800400));    background: -moz-linear-gradient(center top,#C40,#800400);    background: -ms-linear-gradient(center top,#C40,#800400);    border: 2px solid #000000;    border-radius: 10px 10px 10px 10px;    height: 20px;width: 230px;}/*铃铛*/.doraemon .choker .bell{    width:40px;height:40px; _overflow:hidden;/*IE6 hack*/    border-radius:50px;    border:2px solid #000;    background:#f9f12a;    background: -webkit-gradient(linear, left top, left bottom, from(#f9f12a),color-stop(0.5, #e9e11a), to(#a9a100));        background: -moz-linear-gradient(top, #f9f12a, #e9e11a 75%,#a9a100);     background: -ms-linear-gradient(top, #f9f12a, #e9e11a 75%,#a9a100);    box-shadow:-5px 5px 10px rgba(0,0,0,0.25);    position:relative;    top:5px;left:90px;}/*双横线*/.doraemon .choker .bell_line{    background:#F9F12A;    border-radius: 3px 3px 0px 0px;    border: 2px solid #333333;    height: 2px;width: 36px;    position: relative;top: 10px;}/*黑点*/.doraemon .choker .bell_circle {    background:#000;    border-radius: 5px;    height: 10px;    width: 12px;    position: relative;    top: 14px; left: 14px;}/*黑点下的线*/.doraemon .choker .bell_under {    background:#000;    height: 15px;width: 3px;    left: 18px;top: 10px;    position: relative;    }/*高光*/.doraemon .choker .bell_light {    border-radius: 10px;    box-shadow: 19px 8px 5px #FFF;    height:12px;width:12px;    left: 5px;top: -35px;    position: relative;    opacity: 0.7;}.doraemon .bodys{position: relative;top:-310px;}/*肚子*/.doraemon .bodys .body{    background:#07BEEA;    background: -webkit-gradient(linear,right top,left top,from(#07beea),color-stop(0.5, #0073b3),color-stop(0.75,#00b0e0), to(#0096be));    background: -moz-linear-gradient(right center,#07beea,#0073b3 50%,#00b0e0 75%,#0096be 100%);    background: -ms-linear-gradient(right center,#07beea,#0073b3 50%,#00b0e0 75%,#0096be 100%);    border: 2px solid #333;    height: 165px;width: 220px;    position: absolute;    left: 50px;top:265px;}/*白色肚兜*/.doraemon .bodys .wraps{    background:#FFF;    background: -webkit-gradient(linear, right top, left bottom, from(#fff),color-stop(0.75,#fff),color-stop(0.83,#eee),color-stop(0.90,#999),color-stop(0.95,#444), to(#000));    background: -moz-linear-gradient(right top,#FFF,#FFF 75%,#EEE 83%,#999 90%,#444 95%,#000);    background: -ms-linear-gradient(right top,#FFF,#FFF 75%,#EEE 83%,#999 90%,#444 95%,#000);    border: 2px solid #000;    border-radius: 85px;    position: absolute;    height:170px;width:170px;    left:72px;top:230px;}/*口袋*/.doraemon .bodys .pocket{    position:relative;    width:130px;height:130px;    border-radius:65px;    background:#fff;    background: -webkit-gradient(linear, right top, left bottom, from(#fff),color-stop(0.70,#fff),color-stop(0.75,#f8f8f8),color-stop(0.80,#eee),color-stop(0.88,#ddd), to(#fff));    background: -moz-linear-gradient(right top, #fff, #fff 70%,#f8f8f8 75%,#eee 80%,#ddd 88% , #fff);    background: -ms-linear-gradient(right top, #fff, #fff 70%,#f8f8f8 75%,#eee 80%,#ddd 88% , #fff);    border:2px solid #000;    top:250px;left:92px;}/*挡住口袋一半*/.doraemon .bodys .pocket_mask{    position:relative;    width:134px;height:60px;    background:#fff;    border-bottom:2px solid #000;    top:125px;left:92px;}/*右手*/.doraemon .hand_right{    height: 100px;width: 100px;    position: absolute;    top: 272px;left: 248px;}/*左手*/.doraemon .hand_left{    height: 100px;width: 100px;    position: absolute;    top: 272px;left:-10px;}/*手臂公共部分*/.doraemon .arm {    background:#07BEEA;    background: -webkit-gradient(linear, left top, left bottom, from(#07beea),color-stop(0.85,#07beea), to(#555));    background: -moz-linear-gradient(center top , #07BEEA, #07BEEA 85%, #555);    background: -ms-linear-gradient(center top , #07BEEA, #07BEEA 85%, #555);    border: 1px solid #000000;    box-shadow: -10px 7px 10px rgba(0, 0, 0, 0.35);    height: 50px;width: 80px;    z-index:-1;position: relative;}/*右手手臂*/.doraemon .hand_right .arm {    top: 17px;    transform: rotate(35deg);-webkit-transform:rotate(35deg);}/*左手手臂*/.doraemon .hand_left .arm {    top: 17px;background:#0096BE;box-shadow: 5px -7px 10px rgba(0, 0, 0, 0.25);    transform: rotate(145deg);-webkit-transform:rotate(145deg);}/*圆形手掌公共部分*/.doraemon .circle{    position:absolute;    width:60px;height:60px;    border-radius:30px;    border:2px solid #000;    background:#fff;    background: -webkit-gradient(linear, right top, left bottom, from(#fff),color-stop(0.5,#fff),color-stop(0.70,#eee),color-stop(0.8,#ddd), to(#999));        background: -moz-linear-gradient(right top, #fff, #fff 50%, #eee 70%, #ddd 80%,#999); }/*右手手掌*/.doraemon .hand_right .circle{    left:40px;top:32px;}/*左手手掌*/.doraemon .hand_left .circle{    left:-20px;top:32px;}/*手臂和身体结合处*/.doraemon .arm_rewrite{    background:#07BEEA;    height: 45px;width:5px;    position: relative;}/*右手结合处*/.doraemon .hand_right .arm_rewrite{    top: -45px;left:22px;}/*左手结合处*/.doraemon .hand_left .arm_rewrite{    top: -45px;left:60px;background:#0096be}/*脚*/.doraemon .foot {    height: 40px;    left: 20px;    position: relative;    top: -141px;    width: 280px;}/*左脚*/.doraemon .foot .left {    background:#fff;    background: -webkit-gradient(linear, right top, left bottom, from(#fff),color-stop(0.75,#fff),color-stop(0.85,#eee), to(#999));        background: -moz-linear-gradient(right top , #fff, #fff 75%, #EEE 85%, #999);        background: -ms-linear-gradient(right top , #fff, #fff 75%, #EEE 85%, #999);    border: 2px solid #333;    border-radius: 80px 60px 60px 40px;    box-shadow: -6px 0 10px rgba(0, 0, 0, 0.35);    height: 30px;    left: 8px;    position: relative;    top:65px;    width: 125px;}/*右脚*/.doraemon .foot .right {    background:#fff;    background: -webkit-gradient(linear, right top, left bottom, from(#fff),color-stop(0.75,#fff),color-stop(0.85,#eee), to(#999));        background: -moz-linear-gradient(right top , #fff, #fff 75%, #EEE 85%, #999);        background: -ms-linear-gradient(right top , #fff, #fff 75%, #EEE 85%, #999);    border: 2px solid #333;    border-radius: 80px 60px 60px 40px;    box-shadow:-6px 0px 10px rgba(0,0,0,0.35);    height: 30px;width: 125px;    top:31px;left:141px;    position: relative;}.doraemon .foot .foot_rewrite{    position:relative;top:-11px;left:130px;_left:127px;    width:20px;height:10px;    background:#fff;    background: -webkit-gradient(linear, right top, left bottom, from(#666),color-stop(0.83,#fff), to(#fff));    background: -moz-linear-gradient(right top, #666, #fff 83%, #fff);     background: -ms-linear-gradient(right top, #666, #fff 83%, #fff);     border-top:2px solid #000;    border-right:2px solid #000;    border-left:2px solid #000;    border-top-right-radius:40px;    border-top-left-radius:40px;}/*让眼睛动起来*/@-webkit-keyframes eyemove{    80%{margin:0;}    85%{margin:-20px 0 0 0;}    90%{margin:0 0 0 0;}    93%{margin:0 0 0 7px;}    96%{margin:0 0 0 0;}}@-moz-keyframes eyemove{    80%{margin:0;}    85%{margin:-20px 0 0 0;}    90%{margin:0 0 0 0;}    93%{margin:0 0 0 7px;}    96%{margin:0 0 0 0;}}@-ms-keyframes eyemove{    80%{margin:0;}    85%{margin:-20px 0 0 0;}    90%{margin:0 0 0 0;}    93%{margin:0 0 0 7px;}    96%{margin:0 0 0 0;}}

 

以上就是使用css3实现多啦A梦代码的详细内容,更多请关注创想鸟其它相关文章!

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/1608357.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2025年12月23日 21:44:26
下一篇 2025年12月23日 21:45:09

相关推荐

  • 带你吃透CSS3属性:transition 与 transform

    本篇文章带大家了解下css 中的 transition (过渡) 和 transform (动画) 属性,这两个属性的参数确实比较复杂,它们可以做出 css 的一些基础动画效果,平移,旋转,倾角……等等,这些也是我早期学习 css 的难记易忘之处,今天给大家详细总结出来。 一…

    2025年12月24日 好文分享
    000
  • 一文详解CSS3中的Flex布局

    本篇文章带大家了解一下css3中的flex布局,希望对大家有所帮助! 简介 什么是Flex布局 Flex是Flexible Box 的缩写,也称为弹性盒子布局。 Flex布局组成: flex容器(flex container)flex项(flex items)主轴(main axis)交叉轴(cro…

    2025年12月24日 好文分享
    000
  • 【整理总结】这些高级CSS技巧,你会几种?

    本篇文章带你玩转css,分享一些高级css技巧,快来看看你是否都会呀! 学习目标 能够使用精灵图能够使用字体图标能够写出 CSS 三角能够写出常见的 CSS 用户界面样式能够说出常见的布局技巧 精灵图 1. 为什么需要精灵图? 客户端要访问一个网页时,浏览器会向服务器发送请求,服务器接收到请求后,会…

    2025年12月24日 好文分享
    000
  • 手把手教你使用CSS实现酷炫六边形网格背景图

    本篇文章给大家分享不规则图形背景排版高阶技巧,介绍一下如何使用css实现酷炫六边形网格背景图,希望对大家有所帮助! 今天,收到一个很有意思的提问,如何实现类似如下的背景效果图: 嗯?核心主体是由多个六边形网格叠加形成。 立即学习“前端免费学习笔记(深入)”; 那么我们该如何实现它呢?使用纯 CSS …

    2025年12月24日 好文分享
    000
  • CSS新特性学习:方向裁切overflow:clip

    本篇文章将介绍一个新特性,从 chrome 90 开始,overflow 新增的一个新特性 — overflow: clip,使用它,轻松的对溢出方向进行控制。 overflow: clip 为何 首先,简单介绍下 overflow: clip 的用法。 overflow: clip: …

    2025年12月24日 好文分享
    000
  • 看看CSS如何利用计数器来实现长按点赞累积动画

    本篇文章给大家分享一个css自定义计数器的使用小技巧,聊聊如何利用它实现长按点赞累积动画,希望对大家有所帮助! 【推荐学习:css视频教程】 在某条 APP 中,如果长按点赞,会出现这样花里胡哨的动画,如下 立即学习“前端免费学习笔记(深入)”; 这个动画有两部分组成,其中这个随机表情的实现可以参考…

    2025年12月24日 好文分享
    000
  • 详解用SVG给 favicon 添加标识

    怎么使用svg给 favicon 添加标识?下面本篇文章给大家介绍一下使用 svg 生成带标识的 favicon的方法,希望对大家有所帮助! 之前做了一个 Chrome 插件,可以根据地址的不同生成不同的图标,这样可以很方便的区分不同的开发环境,效果如下 主要实现过程其实不复杂,首先获取网站 fav…

    2025年12月24日 好文分享
    000
  • 巧用CSS实现各种奇形怪状按钮(附代码)

    本篇文章带大家看看怎么使用 CSS 轻松实现高频出现的各类奇形怪状按钮,希望对大家有所帮助! 怎么样使用 CSS 实现一个内切角按钮呢、怎么样实现一个带箭头的按钮呢? 本文基于一些高频出现在设计稿中的,使用 css 实现稍微有点难度和技巧性的按钮,讲解使用 css 如何尽可能的实现它们。【推荐学习:…

    2025年12月24日 好文分享
    000
  • 巧用CSS3滤镜制作文字快闪切换动画效果!

    本篇文章带大家看看怎么利用css3滤镜实现高级感拉满的文字快闪切换动画效果,希望对大家有所帮助! 今天偶然看到这样一类很有意思的文字快闪动画: 这类文字快闪切换效果运用得当的话,能比较好的吸引用户的眼球。【推荐学习:css视频教程】 立即学习“前端免费学习笔记(深入)”; 当然,今天并非是想用 CS…

    2025年12月24日 好文分享
    000
  • css3怎么改首字母颜色

    在css3中,可用“:first-letter”选择器和color属性来修改首字母颜色,语法“元素:first-letter{color:颜色值;}”;“:first-letter”可选中元素的首字母,color可给选中的字母设置文本颜色。 本教程操作环境:windows7系统、CSS3&&…

    2025年12月24日
    000
  • 快看!10个不错的CSS实用小技巧(分享)

    本篇文章给大家分享10个不错的css实用小技巧,让前端开发更轻松,快来收藏吧,希望对大家有所帮助! CSS 大约有两百个属性。很多属性都是相互关联的,理清楚每一个属性细节是不可能的。所以,本文分享一些有用的 CSS 小技巧,方便开发者和设计师参考。【推荐学习:css视频教程】 1、 打字效果 立即学…

    2025年12月24日 好文分享
    000
  • 原来利用纯CSS也能实现文字轮播与图片轮播!

    怎么制作文字轮播与图片轮播?大家第一想到的是不是利用js,其实利用纯css也能实现文字轮播与图片轮播,下面来看看实现方法,希望对大家有所帮助! 今天,分享一个实际业务中能够用得上的动画技巧。【推荐学习:css视频教程】 巧用逐帧动画,配合补间动画实现一个无限循环的轮播效果,像是这样: 立即学习“前端…

    2025年12月24日 好文分享
    000
  • 一文了解CSS3中的新属性object-view-box

    本篇文章带大家一起深入了解一下css3中的新特性object-view-box属性,聊聊新属性的作用和使用方法,希望对大家有所帮助! 在开发时,一直希望有一种原生的CSS方式来裁剪图片,并将其定位在我需要的任何方向。这可以通过使用一个额外的HTML元素和不同的CSS属性来实现,后面解释。 在这篇文章…

    2025年12月24日 好文分享
    000
  • CSS变量是怎么工作的?如何使用内联CSS变量进行布局?

    本篇文章带大家了解一下css变量,聊聊css变量是怎么工作的,并介绍一下如何使用内联css变量,以提高灵巧布局效率,希望对大家有所帮助! 有些情况下,我需要用一种简单的方法来创建网格布局。 例如,每次我改变主意时,在不修改CSS的情况下快速画出五列网格。 在本文中,我们一起探索一些用例,并思考如果实…

    2025年12月24日 好文分享
    000
  • 深入探究CSS鼠标指针交互效果

    今天,来实现这样一个有意思的交互效果,通过这个交换效果来聊聊前端鼠标指针交互,希望对大家有所帮助! 将原本的鼠标指针样式,修改成自己想要的效果,并且添加上一些特殊的交互效果。【推荐学习:css视频教程】 修改鼠标样式 首先,第一个问题,我们可以看到,上图中,鼠标指针的样式被修改成了一个圆点: 立即学…

    2025年12月24日 好文分享
    000
  • 纯CSS3怎么实现波浪效果?(代码示例)

    纯css3怎么实现波浪效果?本篇文章就来给大家介绍一下使用 svg 和 css 动画制作波浪效果的方法,希望对大家有所帮助!         随着前端技术的不断发展与进步,界面交互的样式要求和美感也越来越高,很多网页的交互都加上了css3动画,这里作者给大家分享一个前端开发必掌握的一个CSS3波浪效…

    2025年12月24日
    000
  • CSS3动画实战之:超酷炫的粘性气泡效果

    本篇文章带大家聊聊css3动画,看看怎么使用纯 css 实现超酷炫的粘性气泡效果,希望对大家有所帮助! 最近,在 CodePen 上看到这样一个非常有意思的效果: 这个效果的核心难点在于气泡的一种特殊融合效果。【推荐学习:css视频教程】 立即学习“前端免费学习笔记(深入)”; 其源代码在:Code…

    2025年12月24日 好文分享
    000
  • 聊聊CSS3中的4个逻辑选择器(快速入手)

    本篇文章给大家介绍一下css3中的逻辑选择器,聊聊里面的 4 名成员,希望对大家有所帮助! 在 CSS 选择器家族中,新增这样一类比较新的选择器 — 逻辑选择器,目前共有 4 名成员: :is:where:not:has 本文将带领大家了解、深入它们。做到学以致用,写出更现代化的选择器。…

    2025年12月24日 好文分享
    000
  • 一文了解CSS3中的新特性 ::target-text 选择器

    本篇文章带大家一起深入了解一下css3中的新特性::target-text 选择器,聊聊该选择器的作用和使用方法,希望对大家有所帮助! 最近在 MDN 官网看到了一个从未见过的选择器,::target-text。 简单研究了一下,觉得还有点意思,也有点实际用处,现在分享一下。【推荐学习:css视频教…

    2025年12月24日 好文分享
    000
  • css3怎么实现字体渐变色

    方法:用background-clip让渐变背景色在文本区域显示,语法“文字元素{background-image:linear-gradient(..);background-clip:text;color:transparent;}”。 本教程操作环境:windows7系统、CSS3&&…

    2025年12月24日 好文分享
    000

发表回复

登录后才能评论
关注微信