最终结果
源码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>三角形</title>
<style>
.box{
width:0;
height: 0;
border: 50px solid transparent;
/* 三角形的方向自选 */
border-left-color: aquamarine;
margin:100px auto;
}
</style>
</head>
<body>
<div class="box"></div>
</body>
</html>