Every time you need to write your own triangle, is Baidu, and now own a summary, you can look after their own.
div{ width:0; border:100px solid; border-color:red transparent transparent transparent; border-width:calc(100px*1.733) 100px 0 100px; }
Specific can be adjusted according to actual needs