html css画小猪佩琪,【前端切图】用css画一个卡通形象 您所在的位置:网站首页 社会佩琪图头像 html css画小猪佩琪,【前端切图】用css画一个卡通形象

html css画小猪佩琪,【前端切图】用css画一个卡通形象

2023-06-30 07:38| 来源: 网络整理| 查看: 265

最近在腾讯云技术社区遇到了一位奇才,用css画出了一个社会人小猪佩奇,不得不服。研究了一下他的文章https://segmentfault.com/a/1190000014909658,感觉甚是有趣,果断收藏。

话不多说,直接贴一张生动到一塌糊涂的图。

format,png

图片.png

前端代码如下:html>

用css画一个小猪佩奇

div {        position: absolute;        transform-origin: left top;

}.pig_container {    width: 800px;    height: 800px;    top: 0;    left: 50px;

}.pig_head {    width: 300px;    height: 200px;    top: 100px;    left: 100px;    border-radius: 95% 50% 50% 50%/ 87% 80% 68% 50%;    border: 6px solid #ef96c2;    background-color: #ffb3da;    transform: rotate(30deg);    z-index: 100;    box-sizing: border-box;

}.pig_head_white_left_bottom {    width: 200px;    height: 154px;    bottom: -7px;    left: -38px;    background-color: 



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有