手写CSS的书签“标签”样式

改标签为书签的样式
<div class="ant-card-body card_blue">
<div class="tipspp">安全匹配</div>
<div type="flex"...
...

.tipspp {
position: relative;
z-index: 9;
top: -15px;
content: #fff;
}
.tipspp:before {
position: absolute;
top: -2px;
left: -48px;
z-index: -1;
height: 0;
padding-right: 150px;
font-weight: bold;
line-height: 0;
color: #fff;
border: 15px solid #34e078;
border-right-color: transparent;
content: '';
box-shadow: 0 5px 5px -5px #000;
}
.tipspp:after {
content: '';
position: absolute;
top: 28px;
left: -48px;
border: 4px solid #18407d;
border-left-color: transparent;
border-bottom-color: transparent;
}

posted on 2022-06-27 13:48  facenano  阅读(489)  评论(0编辑  收藏  举报