绘制梯形

CSS利用border绘制图形

width:10px;
border-top:10px solid red;
border-right:10px solid transparent;
border-left:10px solid transparent;
border-bottom:10px solid transparent;

绘制三角形:

CSS利用border绘制图形

width:0px;
border-top:10px solid red;
border-right:10px solid transparent;
border-left:10px solid transparent;
border-bottom:10px solid transparent;

绘制直角三角形:

CSS利用border绘制图形

width:0px;
border-top:20px solid red;
border-right:0px solid transparent;
border-left:10px solid transparent;
border-bottom:10px solid transparent;

 

相关文章:

  • 2022-12-23
  • 2022-02-12
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2021-08-30
  • 2021-09-24
猜你喜欢
  • 2021-09-30
  • 2021-06-09
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
相关资源
相似解决方案