日常抖腿之《CSS 绘制 Hi Panda Logo 》

本贴最后更新于 2837 天前,其中的信息可能已经水流花落

都 说 人 生 很 短 暂
角 色 在 不 停 转 换
有 时 候 想 要 回 头
反 而 对 以 前 不 敢

废话不多说,有图有真相。

代码写的有点 low,看官老爷们多多指教。 😆

有些地方做的还是不够好,两个胳膊的弧度实在是搞不定了。。。。。。看着怪怪的样子 😂

e538237e182d42db817ed6718f371b8b-WX20170801171722.png

代码

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>eryoo - 二优 - 作品 - 纯属娱乐</title> <link rel="stylesheet" href="reset.css"> <link rel="stylesheet" href="HiPanda.css"> </head> <body> <div class="HiPanda-warpper"> <!-- 头部 --> <div class="HiPandaHeadWarrper"> <div class="HiPanda-face"> <!-- zuoyan --> <div class="HiPanda-leftEye"> <div class="eye"></div> <div class="whiteBlock"></div> </div> <!--youyan --> <div class="HiPanda-rightEye"> <div class="eye"></div> <div class="whiteBlock"></div> </div> <!-- bizi --> <div class="HiPanda-nose"></div> <!-- 嘴 --> <div class="Hipanda-mouth"></div> <div class="ear left"></div> <div class="ear right"></div> </div> </div> <!-- 身体 --> <div class="bodyWarpper"> <!-- 两只手 --> <div class="arm left"> <div class="hand"></div> </div> <div class="arm right"> <div class="hand"></div> </div> <!-- 肚子 --> <div class="belly"></div> <div class="shorts"> <div class="shortsLyaer"></div> </div> <div class="leftfoot"></div> <div class="rightfoot"></div> </div> <div class="text">Hi Panda</div> </div> </body> </html>
.HiPanda-warpper { position: absolute; width: 500px; height: 800px; left: 50%; margin-left: -250px; } .HiPandaHeadWarrper { position: absolute; width: 312px; height: 312px; left: 50%; margin-left: -156px; top: 10%; } .HiPanda-face { width: 280px; height: 280px; border-radius: 300px; border: 10px solid #000; background: #fff; } .HiPanda-rightEye, .HiPanda-leftEye { position: absolute; width: 60px; height: 60px; border-radius: 50%; border: 25px solid #000; background: #fff; } .HiPanda-leftEye { left: 30px; top: 100px; } .HiPanda-rightEye { right: 30px; top: 100px; } .whiteBlock { width: 120px; height: 50px; background: #fff; position: absolute; } .HiPanda-leftEye .whiteBlock { top: -24px; left: -20px; transform: rotate(25deg); } .HiPanda-rightEye .whiteBlock { top: -24px; left: -40px; transform: rotate(-25deg); } .eye { width: 34px; height: 34px; position: absolute; top: 50%; margin-top: -17px; border-radius: 50%; left: 50%; margin-left: -17px; background: #000 } /*鼻子*/ .HiPanda-nose { position: absolute; top: 182px; left: 50%; margin-left: -7px; height: 30px; width: 14px; border-radius: 50%; background: #000; transform: rotate(90deg); } /*嘴*/ .Hipanda-mouth { width: 154px; height: 8px; background: #000; position: absolute; border-radius: 4px; bottom: 65px; left: 50%; margin-left: -77px; } .ear { width: 110px; height: 110px; background: #000; border-radius: 100%; position: absolute; z-index: -2; } .ear.left { top: -20px; left: -14px; } .ear.right { top: -20px; right: -14px; } /*身体*/ .bodyWarpper { position: absolute; top: 400px; width: 260px; height: 240px; left: 50%; margin-left: -130px; } /*胳膊*/ .arm { width: 140px; height: 30px; background: #000; position: absolute; border-radius: 100% 60% 60% 100%; } .arm.left { left: -32px; top: 10px; transform: rotate(-70deg); } .arm.right { right: -32px; top: 10px; transform: rotate(-105deg); } .hand { width: 24px; height: 24px; background: #fff; border-radius: 100%; border: 13px solid #000; position: absolute; bottom: 0; left: 0px; } .arm.right .hand { margin-bottom: -10px; } .arm.left .hand { margin-bottom: -14px; } .belly { background: #000; width: 180px; height: 172px; position: absolute; top: -35px; left: 50%; margin-left: -90px; z-index: -1; border-radius: 20% 20% 50% 50%; } .shorts { background: #fff; width: 155px; height: 55px; position: absolute; left: 50%; margin-left: -77.5px; top: 66px; } .shortsLyaer { position: absolute; background: #000; width: 166px; height: 35px; left: 50%; margin-left: -83px; border-radius: 50%; top: -16px; } .leftfoot { width: 80px; height: 62px; background: #000; position: absolute; bottom: 87px; left: 38px; border-radius: 0 100% 25% 60% } .leftfoot:after { content: ""; position: absolute; width: 14px; height: 40px; background: #000; top: -30px; } .rightfoot { width: 80px; height: 62px; background: #000; position: absolute; bottom: 87px; right: 38px; border-radius: 100% 0 60% 25%; } .rightfoot:after { content: ""; position: absolute; width: 14px; height: 40px; background: #000; top: -30px; right: 0 } /**/ .HiPanda-warpper:hover .Hipanda-mouth { border-radius: 100%; height: 50px; bottom: 52px; } .HiPanda-warpper:hover .HiPanda-rightEye .whiteBlock, .HiPanda-warpper:hover .HiPanda-leftEye .whiteBlock { display: none } .text { width: 100%; height: 50px; color: #000; position: absolute; bottom: 150px; text-align: center; font-weight: 700; font-size: 50px; font-family: monospace; }
  • 分享

    有什么新发现就分享给大家吧!

    248 引用 • 1794 回帖 • 2 关注
  • 奇思妙想

    虽然我们的世界构建在想象力上,但光想不实操也是没用的。

    60 引用 • 623 回帖 • 5 关注
  • 设计
    120 引用 • 797 回帖 • 1 关注

相关帖子

欢迎来到这里!

我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。

注册 关于
请输入回帖内容 ...

推荐标签 标签

  • Swagger

    Swagger 是一款非常流行的 API 开发工具,它遵循 OpenAPI Specification(这是一种通用的、和编程语言无关的 API 描述规范)。Swagger 贯穿整个 API 生命周期,如 API 的设计、编写文档、测试和部署。

    26 引用 • 35 回帖
  • OnlyOffice
    4 引用 • 23 关注
  • 外包

    有空闲时间是接外包好呢还是学习好呢?

    26 引用 • 233 回帖 • 3 关注
  • 大数据

    大数据(big data)是指无法在一定时间范围内用常规软件工具进行捕捉、管理和处理的数据集合,是需要新处理模式才能具有更强的决策力、洞察发现力和流程优化能力的海量、高增长率和多样化的信息资产。

    93 引用 • 113 回帖 • 1 关注
  • API

    应用程序编程接口(Application Programming Interface)是一些预先定义的函数,目的是提供应用程序与开发人员基于某软件或硬件得以访问一组例程的能力,而又无需访问源码,或理解内部工作机制的细节。

    79 引用 • 431 回帖
  • danl
    163 关注
  • Logseq

    Logseq 是一个隐私优先、开源的知识库工具。

    Logseq is a joyful, open-source outliner that works on top of local plain-text Markdown and Org-mode files. Use it to write, organize and share your thoughts, keep your to-do list, and build your own digital garden.

    7 引用 • 69 回帖
  • Netty

    Netty 是一个基于 NIO 的客户端-服务器编程框架,使用 Netty 可以让你快速、简单地开发出一个可维护、高性能的网络应用,例如实现了某种协议的客户、服务端应用。

    49 引用 • 33 回帖 • 35 关注
  • Access
    1 引用 • 3 回帖 • 1 关注
  • 笔记

    好记性不如烂笔头。

    310 引用 • 794 回帖
  • Word
    13 引用 • 41 回帖
  • 程序员

    程序员是从事程序开发、程序维护的专业人员。

    589 引用 • 3538 回帖 • 1 关注
  • HBase

    HBase 是一个分布式的、面向列的开源数据库,该技术来源于 Fay Chang 所撰写的 Google 论文 “Bigtable:一个结构化数据的分布式存储系统”。就像 Bigtable 利用了 Google 文件系统所提供的分布式数据存储一样,HBase 在 Hadoop 之上提供了类似于 Bigtable 的能力。

    17 引用 • 6 回帖 • 60 关注
  • Electron

    Electron 基于 Chromium 和 Node.js,让你可以使用 HTML、CSS 和 JavaScript 构建应用。它是一个由 GitHub 及众多贡献者组成的活跃社区共同维护的开源项目,兼容 Mac、Windows 和 Linux,它构建的应用可在这三个操作系统上面运行。

    15 引用 • 136 回帖 • 4 关注
  • Visio
    1 引用 • 2 回帖 • 3 关注
  • 思源笔记

    思源笔记是一款隐私优先的个人知识管理系统,支持完全离线使用,同时也支持端到端加密同步。

    融合块、大纲和双向链接,重构你的思维。

    25416 引用 • 105110 回帖 • 1 关注
  • Kafka

    Kafka 是一种高吞吐量的分布式发布订阅消息系统,它可以处理消费者规模的网站中的所有动作流数据。 这种动作(网页浏览,搜索和其他用户的行动)是现代系统中许多功能的基础。 这些数据通常是由于吞吐量的要求而通过处理日志和日志聚合来解决。

    36 引用 • 35 回帖 • 1 关注
  • 链滴

    链滴是一个记录生活的地方。

    记录生活,连接点滴

    174 引用 • 3852 回帖
  • Scala

    Scala 是一门多范式的编程语言,集成面向对象编程和函数式编程的各种特性。

    13 引用 • 11 回帖 • 159 关注
  • Notion

    Notion - The all-in-one workspace for your notes, tasks, wikis, and databases.

    10 引用 • 77 回帖 • 1 关注
  • 服务

    提供一个服务绝不仅仅是简单的把硬件和软件累加在一起,它包括了服务的可靠性、服务的标准化、以及对服务的监控、维护、技术支持等。

    41 引用 • 24 回帖 • 2 关注
  • 宕机

    宕机,多指一些网站、游戏、网络应用等服务器一种区别于正常运行的状态,也叫“Down 机”、“当机”或“死机”。宕机状态不仅仅是指服务器“挂掉了”、“死机了”状态,也包括服务器假死、停用、关闭等一些原因而导致出现的不能够正常运行的状态。

    13 引用 • 82 回帖 • 77 关注
  • 区块链

    区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。所谓共识机制是区块链系统中实现不同节点之间建立信任、获取权益的数学算法 。

    92 引用 • 752 回帖
  • SQLite

    SQLite 是一个进程内的库,实现了自给自足的、无服务器的、零配置的、事务性的 SQL 数据库引擎。SQLite 是全世界使用最为广泛的数据库引擎。

    5 引用 • 7 回帖
  • Hprose

    Hprose 是一款先进的轻量级、跨语言、跨平台、无侵入式、高性能动态远程对象调用引擎库。它不仅简单易用,而且功能强大。你无需专门学习,只需看上几眼,就能用它轻松构建分布式应用系统。

    9 引用 • 17 回帖 • 634 关注
  • HHKB

    HHKB 是富士通的 Happy Hacking 系列电容键盘。电容键盘即无接点静电电容式键盘(Capacitive Keyboard)。

    5 引用 • 74 回帖 • 503 关注
  • WebComponents

    Web Components 是 W3C 定义的标准,它给了前端开发者扩展浏览器标签的能力,可以方便地定制可复用组件,更好的进行模块化开发,解放了前端开发者的生产力。

    1 引用 • 8 关注