div去掉一个角变一个5边型

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<style>
    .container{
        width: 150px;
        height: 100px;
        background: blueviolet;
        clip-path: polygon(25px 0,100% 0,100% 100%,0 100%,0 25px);
    }

</style>

<body>
    <div class="container">

    </div>
</body>
</html>

 

 

  

posted @ 2020-07-13 10:41  lmp5023  阅读(843)  评论(0编辑  收藏  举报