
列表中实现右上角的梯形标签
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<style>
.wrap {
width: 90px;
height: 90px;
display: flex;
align-items: center;
justify-content: center;
background: #fd0;
border-radius: 8px;
position: relative;
overflow: hidden;
}
.tagDiv {
width: 90px;
height: 16px;
background: #f90;
position: absolute;
text-align: center;
top: 8px;
right: -30px;
transform: rotate(45deg);
transform-origin: center;
color: #fff;
font-size: 12px;
}
</style>
<body>
<div class="wrap">
<div>内容</div>
<div class="tagDiv">审核</div>
</div>
</body>
</html>
2115

被折叠的 条评论
为什么被折叠?



