- margin和padding属性表示顺序为顺时针,从上面开始 border-radius属性表示顺序也为顺时针,从左上角开始
- 绘制三角形:
.triangle{
height:0;
width:0;
border-left:50px solid transparent;
border-right:50px solid transparent;
border-bottom:100px solid red;
}
效果图:
.triangle{
height:0;
width:0;
border-left:50px solid transparent;
border-right:50px solid transparent;
border-bottom:100px solid red;
}
效果图: