微信LOGO-(CSS)

代码:


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>微信LOGO</title>
    <style type="text/css">

        * {
            margin: 0;
            padding: 0;
        }

        figure {
            width: 600px;
            height: 600px;
            margin: auto;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: #eeeeee;
        }

        .left {
            width: 300px;
            height: 260px;
            background-color: #88e753;
            -webkit-border-radius: 50%;
            -moz-border-radius: 50%;
            border-radius: 50%;
            position: absolute;
            top: 40%;
            left: 40%;
            transform: translate(-50%, -50%);
        }

        .left::before, .left::after {
            content: ' ';
            display: inline-block;
            width: 30px;
            height: 30px;
            position: absolute;
            top: 50px;
            background-color: #e0e2e3;
            -webkit-border-radius: 50%;
            -moz-border-radius: 50%;
            border-radius: 50%;
        }

        .left::before {
            left:80px;
        }

        .left::after {
            left: 180px;
        }

        .right {
            width: 260px;
            height: 200px;
            background-color: #ffffff;
            -webkit-border-radius: 50%;
            -moz-border-radius: 50%;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 60%;
            transform: translate(-50%, -50%);
        }

        .right::before, .right::after {
            content: '';
            display: inline-block;
            width: 30px;
            height: 30px;
            position: absolute;
            top: 50px;
            background-color: #e0e2e3;
            -webkit-border-radius: 50%;
            -moz-border-radius: 50%;
            border-radius: 50%;
        }

        .right::before {
            left: 60px;
        }

        .right::after {
            left: 140px;
        }

       .msg::before, .msg::after{
           content:'';
           width: 0px;
           height: 0px;
           position: absolute;
           border-width: 35px;
           border-style: solid;
       }

       .msg::before {
           left: 23%;
           top: 57%;
           border-color: transparent transparent #88e753;
           transform: rotate(210deg);
       }

       .msg::after{
            left: 63%;
            top: 63%;
            border-color: transparent transparent #ffffff;
            transform: rotate(159deg);
       }

    </style>
</head>
<body>
    <figure>
        <div class="left"></div>
        <div class="right"></div>
        <div class="msg"></div>
    </figure>
</body>
</html>复制代码


效果图:





转载于:https://juejin.im/post/5bee724ee51d4543850fe27f

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值