用svg画一个梯形角标

在这里插入图片描述

活不多说,直接上代码。

      <div class="status0" >
        <svg  class="rect" width="120px" height="200px">
          <polygon points="50,0 100,0 125,30 125,80 " class="pp"/>
        </svg>
          <div class="desc"></div>
      </div>

 

.status0{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

更多内容请见原文,原文转载自:https://blog.csdn.net/weixin_44519496/article/details/120152428

posted @ 2022-08-08 18:52  忘川信使  阅读(141)  评论(0编辑  收藏  举报