<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <style>
            #triangle-up {
                width: 0;
                height: 0;
                border-left: 50px solid red;
                border-right: 50px solid yellow;
                border-bottom: 50px solid greenyellow;
                border-top: 50px solid #0F9AE0;     /*加 transparent 属性可以使相应的边框隐藏*/
            }
        </style>
    </head>
    <body>
        <div id="triangle-up"></div>
    </body>
</html>


效果图如下:

css绘制三角形

相关文章:

  • 2021-09-11
  • 2021-12-19
  • 2021-12-18
  • 2021-06-15
  • 2021-09-17
  • 2021-09-08
  • 2021-11-20
猜你喜欢
  • 2021-09-27
  • 2021-09-27
  • 2021-07-29
  • 2021-12-17
  • 2021-11-20
  • 2021-11-20
  • 2021-06-28
  • 2021-09-27
相关资源
相似解决方案