利用border transparent 来画三角形
.content {
background-color: #98e165;
border: 8px solid #98e165;
border-radius: 5px;
position: relative;
}
.content::before {
content: " ";
display: block;
width: 0;
height: 0;
border-left: 12px solid #98e165;
border-top: 15px solid transparent;
border-bottom: 6px solid transparent;
position: absolute;
right: -14px;
}
效果图