<!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: 0;
height: 0;
border-top: 10px solid red;
border-bottom: 10px solid blue;
border-left: 10px solid gold;
border-right: 10px solid purple;
}
.box2 {
width: 0;
height: 0;
border: 10px solid transparent;
border-top-color: deeppink;
}
</style>
</head>
<body>
<div class="box1">
</div>
<div class="box2">
</div>
</body>
</html>
<!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>
.jd {
position: relative;
width: 200px;
height: 300px;
background-color: blanchedalmond;
margin: 100px auto;
}
.jd span {
position: absolute;
width: 0;
height: 0;
border: 50px solid transparent;
border-bottom-color: blanchedalmond;
top: -75px;
left: 80px;
}
</style>
</head>
<body>
<div class="jd">
<span>
</span>
</div>
</body>
</html>