首页 > Web开发 > 详细

css-利用边框画三角形

时间:2018-02-27 22:29:26      阅读:226      评论:0      收藏:0      [点我收藏+]
html中代码
1
2
3
4
<div class=‘box-rihgt‘></div>
<div class=‘box-top‘></div>
<div class=‘box-left‘></div>
<div class=‘box-bottom‘></div>

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
.box-top{
    width0;
    height0;
    border-right:10px solid  transparent;
    border-left:10px solid  transparent;
    border-bottom20px solid  #333;
}
.box-bottom{
    width0;
    height0;
    border-right:10px solid  transparent;
    border-left:10px solid  transparent;
    border-top20px solid  #999;
}
.box-left{
    width0;
    height0;
    border-bottom:10px solid  transparent;
        border-top:10px solid  transparent;
    border-right20px solid  green;
}
.box-rihgt{
    width0;
    height0;
    border-bottom:10px solid  transparent;
    border-top:10px solid  transparent;
        border-left20px solid  red;
}

 

  

 

css-利用边框画三角形

原文:https://www.cnblogs.com/guiyuan/p/8480879.html

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