样式表:
<style>
.triangle_border_up{
0;
height:0;
border-0 60px 60px;
border-style:solid;
border-color:transparent transparent red;/*透明 透明 灰*/
}
</style>
html:
<body>
<div class="triangle_border_up">
<span></span>
</div>
<div class="heartRight">
<span></span>
</div>
</body>
效果: