css 实现div 右上角加三角形

 

效果:

 

 

.el-row::before {
    content: "";
    width:0;
    height: 0;
    border:60px solid transparent;
    border-right:60px solid #e3e3e3;
    transform: rotate(135deg);
    position: absolute;
    right: -61px;
    top: -61px;
    cursor: pointer;
  }
 .el-row::after {
    content: "信息化";
    font-size: 12px;
    width: 50px;
    height: 40px;
    color: #7e7e7e;
    transform: rotate(45deg);
    position: absolute;
    right: 13px;
    top: 16px;
    font-weight: bold;
    letter-spacing:2px;
    cursor: pointer;
  }

.el-row 为框框 class

 

posted @ 2022-05-31 15:42  凉面好好吃  阅读(258)  评论(0编辑  收藏  举报