倒圆角艺术

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>倒圆角</title>
        <style type="text/css">
            .one{
                height: 100px;
                width: 50px;
                border: 1px solid gainsboro;
                /*border-radius: 50px 20px 10px 0px;*//*值为   *px  *%倒圆角*/
                /*border-radius: 50px;*/
                border-radius: 50px;
                /*border-radius:50%;*/
            }
            .two{
                height: 200px;
                width: 200px;
                background: yellow;
                border-radius: 100px 0px;
            }
            .three{
                height: 200px;
                width: 200px;
                background: yellow;
                border-radius: 200px 0px;
            }
            .four{  /*月牙弯弯*/
                height: 200px;
                width: 200px;
                /*background: red;*/
                box-shadow: 20px 20px 0px yellow inset;
                border-radius: 50%;
            }
        </style>
    </head>
    <body>
        <div class="one"></div>
        <div class="two"></div>
        <div class="three"></div>
        <div class="four"></div>
    </body>
</html>

 

posted @ 2017-09-15 20:19  鱼樱前端  阅读(183)  评论(0编辑  收藏  举报