css实现三角箭头

像下面的向右三角箭头,只有纯css不需要图片就可以实现了。

width:0px;height:0px;border-width:0px 16px 20px 16px; border-style:solid;border-color:  transparent transparent #FFF transparent; 向上箭头

width:0px;height:0px;border-width:20px 10px 0 10px ; border-style:solid;border-color:#FFF transparent transparent transparent ;向下箭头

width:0px;height:0px;border-width:10px 20px 10px 0 ; border-style:solid;border-color:transparent #FFF transparent transparent ;向左箭头
width:0px;height:0px;border-width:10px 0 10px 20px;border-style:solid; border-color:transparent transparent transparent #FFF; 向右箭头

技巧:最大数值给个颜色,同时保证对立border数值为0

posted @ 2014-10-10 19:48  若强  Views(981)  Comments(0Edit  收藏  举报