css clip-path的polygon属性绘制多边形

通过设置多个点的坐标位置来绘制图形的形状

  .box{

    clip-path:polygon(x1 y1, x2 y2, x3 y3, , , , , ,)
    backgroud-color:red;

  }

  

       

 

posted @ 2019-04-01 13:47  Vae唯一的信仰  阅读(933)  评论(0编辑  收藏  举报