三角形的实现原理
在css3中使用transparent的属性,透明的意思。background:transparent;可以设置背景为透明
三角形的分类
上三角
.tr-up{
width:0;
hieght:0;
border-left:50px solid transparent;
border-right:50px solid transparent;
border-bottom:100px solid black;
}
下三角
.tr-down{
width: 0;
height: 0;
border-left:50px solid transparent;
border-right:50px solid transparent;