用纯CSS创建一个三角形

 1  <style>
 2     div {
 3         width: 0;
 4         height: 0;
 5         border-top: 40px solid transparent;
 6         border-left: 40px solid transparent;
 7         border-right: 40px solid transparent;
 8         border-bottom: 40px solid pink;
 9     }
10     </style>
11 </head>
12 <body>
13   <div></div>
14 </body>

 

posted @ 2020-10-19 10:03  俩只猫  阅读(114)  评论(0编辑  收藏  举报