等边三角形:
<!DOCTYPE html>
<html>
<head>
<style>
.x{
width: 0px;height: 0px;
border-top: 50px solid transparent;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
border-bottom: 86.602540378px solid red;
}
</style>
</head>
<body>
<div class="x"> </div>
</body>
</html>
等腰直角三角形:
<!DOCTYPE html>
<html>
<head>
<style>
.x{
width: 0px;height: 0px;
border-top: 50px solid transparent;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
border-bottom: 50px solid red;
}
</style>
</head>
<body>
<div class="x"> </div>
</body>
</html>
30°60°90°三角形直角三角形:
<!DOCTYPE html>
<html>
<head>
<style>
.x{
width: 0px;height: 0px;
border-top: 50px solid transparent;
border-left: 50px solid transparent;
border-right: 150px solid transparent;
border-bottom: 86.602540378px solid red;
}
</style>
</head>
<body>
<div class="x"> </div>
</body>
</html>