首页 > 其他 > 详细

CCS绘制成的三角形箭头

时间:2015-10-05 12:58:34      阅读:340      评论:0      收藏:0      [点我收藏+]

css {

width: 0; height: 0;

border-left: 5px solid transparent; /* left arrow slant */

border-right: 5px solid transparent; /* right arrow slant */

border-bottom: 5px solid #2f2f2f; /* bottom, add background color here */

font-size: 0;

line-height: 0;

}

 

一直无法理解,然后知道自己尝试出来下图。

技术分享

CCS绘制成的三角形箭头

原文:http://www.cnblogs.com/loying/p/4855569.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!