22_实现三角形.html 592 B

12345678910111213141516171819202122
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Document</title>
  7. <style>
  8. div{
  9. width: 0;
  10. border-top: 10px solid rgba(0,0,0,0);
  11. border-left: 10px solid rgba(0,0,0,0);
  12. border-bottom: 10px solid green;
  13. /* border-right: 10px solid rgba(0,0,0,0); */
  14. /* transparent表示透明的颜色 */
  15. border-right: 10px solid transparent;
  16. }
  17. </style>
  18. </head>
  19. <body>
  20. <div></div>
  21. </body>
  22. </html>