用CSS画一个三角形

<style>
    div {
      width: 0;
      height: 0;
      border-top: 100px solid red;
     <!-- 边框的均匀分布 -->
      border-left: 100px solid transparent;
      border-bottom: 100px solid transparent;
      border-right: 100px solid transparent;
    }
  </style>
  <body>
    <div></div>
  </body>

 

posted @ 2022-05-07 12:43  RHCHIK  阅读(30)  评论(0编辑  收藏  举报