<!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>Document</title>
</head>
<style>
div{
width: 0;
height: 0;
border-bottom: 100px solid transparent;
border-top: 100px solid black;
border-left: 100px solid transparent;
border-right: 100px solid transparent;
}
</style>
<body>
<!--当我三边其它的边设置成透明颜色即可-->
<div></div>
</body>
</html>