css 三角形

159 阅读1分钟

实心三角

width:0px;
height:0px;
border :6px transparent solid;
border-bottom-color :blue;

空心三角形

width:10px;
height:10px;
border:2px red solid;
border-left-color:transparent;
border-bottom-color :transparent;
transfrom:rotate(-45deg);
margin-top:10px;