border画梯形

<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>CSS使用border制作梯形</title>
  <style>
    .tixing{
        200px;
        border-bottom:200px solid red;
        border-left:50px solid transparent;/*transparent透明色*/
        border-right:50px solid transparent;
    }
  </style>
 </head>
 <body>
  <div class='tixing'>
  </div>
 </body>
</html>

原文地址:https://www.cnblogs.com/VaeVae/p/8630059.html