CSS画三角
先画正方形再使上左右三个三角形变为透明
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Document</title>
<style>
body{
background-color: green;
}
div{
width: 0px;
height: 0px;
border-top: 100px solid transparent;
border-left: 100px solid transparent;
border-bottom: 100px solid transparent;
border-right:100px solid greenyellow;
}
</style>
</head>
<body>
<div>
</div>
</body>
</html>