There is the following html code:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title> <style> .triangle_up{ height:0px; width:0px; border-bottom:50px solid red; border-left:50px solid transparent ; border-right:50px solid transparent ;} </style></head><body> <div class="triangle_up"></div> </body></html>
Change the CSS:
.triangle_up{ height:0px; width:0px; border-bottom:50px solid red; border-left:50px solid ; border-right:50px solid ;}
Still confused, change the width and height again:
Change the width and height again:
It suddenly dawned on me.
The width and height of the block are both 0, and the transparency is cleverly set, so it looks like a triangle!