纯生HTML+css制作一个青蛙

效果图:

所有代码:

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>青蛙</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        body {
            background-color: skyblue;
        }
        .wai {
            width: 250px;
            height: 450px;
            background-color: green;
            border-left: 100px solid green;
            border-radius: 50%;
            margin: 0 auto;
        }
        .up {
            width: 50px;
            height: 50px;
            background-color: #000;
            border: 75px solid #fff;
            border-radius: 50%;
            margin-left: -100px;
        }
        .wai {

            transform: rotate(90deg);
        }
        .down {
            width: 50px;
            height: 50px;
            background-color: #000;
            border: 75px solid #fff;
            border-radius: 50%;
            margin-top: 30px;
            margin-left: -100px;
        }
        .bz1 {
            width: 12px;
            height: 10px;
            background-color: #3c3131b1;
            position: relative;
            left: 100px;
            bottom: 200px;
            float: left;
            border-radius: 30%;
        }
        .bz2 {
            width: 12px;
            height: 10px;
            background-color: #3c3131b1;
            position: relative;
            left: 100px;
            bottom: 230px;
            border-radius: 30%;
        }
        .zb1 {
            width: 100px;
            height: 250px;
            border-radius: 50%;
            border-right: 140px solid salmon;
            /*边框的厚140px  实线  浅红色*/
            position: relative;
            left: 50px;
            bottom: 335px;
        }
    </style>
</head>

<body>
    <div class="wai">
        <div class="up"></div>
        <div class="down"></div>
        <div class="bz1"></div>
        <div class="bz2"></div>
        <div class="zb1"></div>
    </div>

</body>

</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值