【无标题】

这篇博客展示了一种使用CSS创建特殊形状的方法,通过设置不同边框颜色和半径,构造出一个由黑色和绿色组成的圆形切角效果。示例中包含一个黑色半圆和一个绿色半圆,以及两个小的圆形装饰元素,可以用于网页设计中的创意布局。
摘要由CSDN通过智能技术生成

<!DOCTYPE html>

<html lang="en">

<head>

    <title></title>

    <style>

        .jx{

            width: 0;

            border-left: 150px solid #000;

            border-right: 150px solid rgb(0, 255, 191);

            height: 300px;

            border-radius: 50%;

            position: relative;

        }

        .kj{

            width: 150px;

            height: 150px;

            background-color: #000;

            border-radius: 50%;

            position: absolute;

            left: -75px;

            top: 0px;

        }

        .aa{

            width: 150px;

            height: 150px;

            background-color: rgb(0, 255, 191);

            border-radius: 50%;

            position: absolute;

            left: -75px;

            top: 150px;

        }

        .xx{

            width: 40px;

            height: 40px;

            background-color: rgb(0, 255, 191);

            border-radius: 50%;

            position: absolute;

            top: 50px;

        }

        .po{

            width: 40px;

            height: 40px;

            background-color: #000;

            border-radius: 50%;

            position: absolute;

            bottom: 50px;

        }

    </style>

</head>

<body>

    <div class="jx">

        <div class="kj"></div>

        <div class="aa"></div>

        <div class="xx"></div>

        <div class="po"></div>

    </div>

</body>

</html>

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA4YOm4LiF5pyI5Lqu4LiF,size_14,color_FFFFFF,t_70,g_se,x_16

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值