<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>梯形形状</title>
<style type="text/css">
.div1{
width: 150px;
border-top: 100px solid red;
border-right: 100px solid transparent;
float: left;
}
.div2{
width: 150px;
border-bottom: 100px solid #000;
border-left: 100px solid transparent;
float: left;
margin-left: -100px;
}
</style>
</head>
<body>
<div class="div1"></div>
<div class="div2"></div>
</body>
</html>