<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.a{
width:200px;
height:200px;
position:relative;
background: #fff;
overflow: hidden;
}
.b{
width:100px;
height:100px;
position: absolute;
/*background: green;*/
top:-50px;
right:-50px;
transform: rotate(45deg);
}
.b span{
position: absolute;
bottom:0;
display: block;
font-size:16px;
color:#fff;
background: #36A8FF;
width:100px;
text-align: center;
}
</style>
</head>
<body>
<div class="a">
<div class="b">
<div class="c"></div>
<span>交易中</span>
</div>
</div>
</body>
</html>
利用position使div脱离文档流,然后调整自己需要的大小和位置就行了。