标签:
1,生成有填充颜色的三角形
some-class {
width: 0;
height: 0;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-bottom: 40px solid red;
}
或者
some-class {
width: 0;
height: 0;
border-width: 20px;
border-style: solid;
border-color: transparent transparent red transparent;
}
2,生成没有颜色填充的三角形
some-class {
display:
width:
height:
border-color:
border-style:
border-width:
transform:
}
标签:
原文地址:http://www.cnblogs.com/yezongyang/p/5597532.html