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{
        width: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>

posted @ 2018-03-23 14:16  Vae唯一的信仰  阅读(409)  评论(0编辑  收藏  举报