使用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)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
text-shadow文字特效实现方法
上一篇 2025年12月23日 21:44:26
详解CSS BOX类型和display属性
下一篇 2025年12月23日 21:45:23

相关推荐

  • 利用css3仿造window7的开始菜单

    相当逼真,css3果然强悍。要留意的点依旧是哪几项,难点在于细节的微调,尤其是渐变背景的制作,css3中非常灵活,下次有机会,发篇css3渐变背景的详细教程。   相当逼真,css3果然强悍。友情提示:请勿在IE下浏览。来看下原作者的设计草图: 简明创建过程  第一步 :创建如下菜单结构 @@##@…

    2026年5月10日
    000
  • 怎么安装html5_HTML5开发环境安装与配置详细步骤

    答案是配置HTML5开发环境需三步:1. 安装VS Code等编辑器并配置插件;2. 使用Chrome或Firefox测试页面;3. 可选搭建本地服务器,如Live Server或http-server;最后创建index.html文件验证环境。 安装HTML5开发环境其实并不复杂,因为HTML5本…

    2026年5月10日
    000
  • 使用CSS Grid实现不规则列布局:告别传统表格的限制

    本教程详细阐述如何利用css grid实现复杂的、不规则的列布局,尤其适用于那些传统html表格难以实现的块状结构。文章将通过具体的css属性和html结构示例,指导读者如何定义网格、控制子项的跨度与位置,以及优化自动布局流程,从而高效构建灵活且响应式的页面布局。 1. 传统表格的局限与CSS Gr…

    2026年5月10日
    000
  • border-radius属性如何使用

    border-radius属性用于创建圆角,其使用语法是“border-radius: 1-4 length|%;”,border-radius是一个最多可指定四个“border -*- radius”属性的复合属性。 本文操作环境:Windows7系统、Dell G3电脑、HTML5&&a…

    2026年5月10日
    000
  • 详解img[src=””] img无路径情况下,灰色边框去除解决方法

    img[src=””]  img标签无路径情况下,灰色边框去除解决方案 1.Js解决办法 @@##@@ function whenError(a){ a.onerror=null; a.src=’path_default.jpg’; console.log(‘图片出错的时候调…

    用户投稿 2026年5月10日
    000
  • HTML5怎么制作天气应用_HTML5天气组件开发实战

    使用HTML5、CSS3和JavaScript结合OpenWeatherMap API可快速开发响应式天气应用。2. 页面结构包含输入框、按钮和结果显示区域。3. 通过fetch调用API获取实时天气数据,支持中文和摄氏度单位。4. 数据渲染包括城市名、温度、图标、湿度和风速,并用CSS美化界面。5…

    2026年5月10日
    000
  • 关于CSS3字体属性整理分析

     字体属性: Font-family: {font-family: name}           {font-family: cursive| fantasy | monospace | serif | sans-serif} Font-size: {font-size: 数值 | inherit…

    用户投稿 2026年5月10日
    000
  • 使用Flexbox实现内容居中布局:从页脚固定到内容对齐

    本文深入探讨了如何利用CSS Flexbox实现网页内容的精确居中对齐,尤其是在包含固定页脚的复杂布局中。我们将通过分析一个常见的布局问题,逐步讲解如何配置Flex容器及其子项的属性,如`display: flex`、`flex-direction`、`justify-content`和`text-…

    2026年5月10日
    000
  • 学习html5编程路径_从基础到项目实战路线【方法】

    需遵循由浅入深的学习路径:一、分阶段夯实HTML/CSS/JS基础与HTML5新API;二、通过待办列表、Canvas画板等微型项目整合技能;三、参与开源或复刻经典界面提升工程素养;四、用Vite等工具实践构建流程;五、打造可展示的全栈作品集。 如果您希望系统性地掌握HTML5编程技能,并最终能够独…

    2026年5月10日
    600
  • css权重是什么?css权重的介绍

    本篇文章给大家带来的内容是关于css权重是什么?css权重的介绍,有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。 1、什么是css权重?css6大基础选择器 css权重指的是css6大基础选择符的优先级,优先级高的css样式会覆盖优先级底的css样式,优先级越高说明权重越高,反之亦然…

    2026年5月10日
    100
  • 如何使用CSS的Grid布局实现小松鼠邮票的效果(附源码)

    本篇文章给大家带来的内容是关于如何使用css的grid布局实现小松鼠邮票的效果(附源码),有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。 效果预览 源代码下载 每日前端实战系列的全部源代码请从 github 下载: https://github.com/comehope/front-…

    2026年5月10日
    000
  • 使用CSS3实现鼠标悬停图片上浮显示描述的示例代码分享

    使用CSS3实现鼠标悬停图片上浮显示描述的示例代码分享使用CSS3实现鼠标悬停图片上浮显示描述的示例代码分享使用CSS3实现鼠标悬停图片上浮显示描述的示例代码分享使用CSS3实现鼠标悬停图片上浮显示描述的示例代码分享

    效果图: 代码如下: CSS3鼠标悬停图片上浮显示描述特效 – 何问起.hovertree-container{border:0px solid red;}.container{background-color:white}.hovertreeinfo{text-align:center;}a{co…

    2026年5月10日 用户投稿
    000
  • css3中新增加的颜色模式有哪些

    css新增了3种颜色模式:1、RGBA模式,是在RGB模式上新增了Alpha透明度,例“rgba(255,0,0,0.5)”;2、HSL模式,例“hsl(360,50%,50%)”;3、HSLA模式,是在HSL模式上新增了Alpha透明度。 本教程操作环境:windows7系统、CSS3版、Dell…

    2026年5月10日
    000
  • css3 animation属性怎么用

    css3 animation属性是一个简写属性,通过设置六个动画属性来实现动画效果。这六个属性分别为动画名称、动画时间、速度曲线、动画延迟、播放次数及动画是否反向播放。 css3 animation属性 作用:animation 属性是一个简写属性,用于设置六个动画属性。 语法: animation…

    2026年5月10日
    000
  • 如何使用CSS3实现千变万化的文字阴影text-shadow的效果

    如何使用CSS3实现千变万化的文字阴影text-shadow的效果如何使用CSS3实现千变万化的文字阴影text-shadow的效果如何使用CSS3实现千变万化的文字阴影text-shadow的效果如何使用CSS3实现千变万化的文字阴影text-shadow的效果

    这篇文章主要介绍了css3实现千变万化的文字阴影text-shadow效果设计的相关资料,感兴趣的小伙伴们可以参考一下 本文实例为大家分享了CSS3千变万化的文本阴影text-shadow效果实例,供大家参考,具体内容如下 语法: none||none|[,]*或none||[,]* 取值简单说明:…

    2026年5月10日 用户投稿
    000
  • CSS3实现预载动画效果的几种方法

    CSS3实现预载动画效果的几种方法CSS3实现预载动画效果的几种方法CSS3实现预载动画效果的几种方法CSS3实现预载动画效果的几种方法

    本篇文章主要介绍了css3动画:5种预载动画效果实例,内容挺不错的,现在分享给大家,也给大家做个参考。 实现如图所示的动画效果: 预载动画一:双旋圈 在两个不同方向旋转的圆圈。我们对内圈的转速定义了一个CSS代码,即内圈比外圈的速率快2倍。 实现如图所示: 立即学习“前端免费学习笔记(深入)”; h…

    2026年5月10日 用户投稿
    000
  • 使用HTML5和CSS3实现生日蛋糕的制作

    这篇文章主要介绍了关于使用HTML5和CSS3实现生日蛋糕的制作,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下 “祝你生日快乐,祝你生日快乐……”,过生日有生日歌,生日蛋糕也是必不可少的,这篇文章主要为大家详细介绍了程序员利用纯HTML5+CSS3制作的生日蛋糕,具有一定的参考价值,…

    2026年5月10日
    000
  • CSS3中有哪些伪类选择器, 伪类选择器nth-child() 怎么使用

    css3中新的属性给我们带来了不少的便利,比如伪类选择器 nth-child(),但是它在ie6-8和ff3.0-浏览器不支持,css3中nth-of-type(n)(比如nth-of-type(1))这个特殊的类选择符可以设置更加个性的标题和段落等,不过,目前nth-of-type(n)只支持火狐…

    用户投稿 2026年5月10日
    000
  • html5如何转圈动画_制作HTML5元素转圈动画效果【效果】

    可通过CSS3 @keyframes配合transform实现持续旋转动画,具体包括定义rotate360关键帧、应用animation属性、结合JavaScript动态控制、优化timing-function及移动端适配。 如果您希望让HTML5页面中的某个元素实现持续旋转的动画效果,则可以通过C…

    2026年5月10日
    100
  • 什么是CSS优先级

    什么是CSS优先级什么是CSS优先级什么是CSS优先级什么是CSS优先级

    所谓CSS优先级,即是指CSS样式在浏览器中被解析的先后顺序;浏览器是通过优先级来判断哪些属性值与元素最相关以决定并应用到该元素上的。优先级就是分配给指定的CSS声明的一个权重,它由匹配的选择器中的每一种选择器类型的数值决定。 本教程操作环境:windows7系统、CSS3版、Dell G3电脑。 …

    2026年5月10日 用户投稿
    000

发表回复

登录后才能评论
关注微信