#html#画哆啦a梦

简单画图,对html还是不太熟悉,画得不太像。
<!--
 * @Descripttion: 
 * @version: 
 * @Author: ZhuJianwei
 * @Date: 2021-06-22 09:14:06
 * @LastEditors: ZhuJianwei
 * @LastEditTime: 2021-06-23 17:49:18
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
    
            margin: 0;
            padding: 0;
            
        }

        html,
        body {
    
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .box {
    
            width: 500px;
            height: 500px;
            display: flex;
            flex-direction: column;
            align-items: center;
            /* 怪异盒模型 */
            box-sizing: border-box;
            position: relative;

        }

        .box div {
    
            position: absolute;
        }

        /* 头部 */
        .head {
    
            width: 320px;
            height: 300px;
            justify-content: center;
            align-items: center;
            border: 2px solid #223b41;
            background: #09b8e3;
            border-radius: 160px 160px 170px 170px;
            position: relative;
            z-index: 0;
            box-shadow: -15px 30px 30px -30px #fff inset, 15px -30px 30px -30px #000 inset, -68px 40px 85px -60px #8b8b8b;
        }

        .head p {
    
            position: absolute;
        }

        .face {
    
            /* 大小 */
            width: 270px;
            height: 200px;
            /* 位置 */
            top: 90px;
            left: 24px;
            border-radius: 50%;
            /* 圆边界 */
            background: #fff;
            /* 背景色 */
            /* 边界 */
            border: 2px solid #223b41;
            z-index: 3;
            position: relative;
        }

        .face i {
    
            position: absolute;
        }

        .bread1 {
    
            width: 60px;
            height: 2px;
            top: 94px;
            left: 24px;
            transform: rotate(-15deg);
            background: #000;
        }

        .bread2 {
    
            width: 60px;
            height: 2px;
            top: 63px;
            left: 24px;
            transform: rotate(15deg);
            background: #000;
        }

        .bread3 {
    
            width: 60px;
            height: 2px;
            top: 78px;
            left: 24px;
            background: #000;
        }

        .bread4 {
    
            width: 60px;
            height: 2px;
            top: 94px;
            right: 24px;
            transform: rotate(15deg);
            background: #000;
        }

        .bread5 {
    
            width: 60px;
            height: 2px;
            top: 63px;
            right: 24px;
            transform: rotate(-15de
  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值