首页 > Web开发 > 详细

三角形-css

时间:2016-03-02 10:44:43      阅读:214      评论:0      收藏:0      [点我收藏+]
/*箭头向上*/
.arrow-up {
    width:0; 
    height:0; 
    border-left:30px solid transparent;
    border-right:30px solid transparent;
    border-bottom:30px solid #000;
}
    
 /*箭头向下*/
.arrow-down {
    width:0; 
    height:0; 
    border-left:30px solid transparent;
    border-right:30px solid transparent;
    border-top:30px solid #0066cc;
}
    
 /*箭头向左*/
.arrow-left {
    width:0; 
    height:0; 
    border-top:30px solid transparent;
    border-bottom:30px solid transparent; 
    border-right:30px solid yellow; 
}
   
/*箭头向右*/
.arrow-right {
    width:0; 
    height:0; 
    border-top:30px solid transparent;
    border-bottom: 30px solid transparent;
    border-left: 30px solid green;
}

/*箭头无封口*/
.deg{
    width:30px;
    height:30px;
    border-left:1px solid red;
    border-bottom:1px solid red;
    margin-left:100px;
    transform:rotate(-45deg);
}

css写三角形

三角形-css

原文:http://www.cnblogs.com/zhangrenjie/p/5233768.html

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