css实现三角箭头

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

width:0px;height:0px;border-width:10px 7px 0 7px; border-style:solid;border-color: #ccc transparent transparent 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

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。