<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.box1 {
width: 0px;
height: 0px;
/* border: 10px solid pink; */
border-top: 100px solid pink;
border-bottom: 100px solid red;
border-right: 100px solid green;
border-left: 100px solid blue;
}
.box2 {
width: 0px;
height: 0px;
border: 100px solid transparent;
border-top-color: pink;
margin: 100px auto;
}
.jb {
position: relative;
width: 120px;
height: 249px;
background-color: pink;
}
.jb span {
position: absolute;
width: 0px;
height: 0px;
/* 为了照顾兼容性 */
line-height: 0;
top: -9px;
right: 15px;
font-size: 0;
border: 5px solid transparent;
border-bottom-color: pink;
}
</style>
</head>
<body>
<div class="box1"></div>
<div class="box2"></div>
<div class="jb">
<span></span>
</div>
</body>
</html>