- 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;
}
效果圖: