【图形】CSS绘制三角形(尖角向上)
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <base target="_blank" /> <title>三十客 - 【图形】CSS绘制三角形</title> <style> #triangle-up { width: 0; height: 0; border-left: 100px solid transparent; border-right: 100px solid transparent; border-bottom: 200px solid red; } </style> </head> <body> <div id="triangle-up"></div> </body> </html>