码迷,mamicode.com
首页 > Web开发 > 详细

css-利用边框画三角形

时间:2018-02-27 23:42:38      阅读:242      评论:0      收藏:0      [点我收藏+]

标签:ace   lsp   htm   body   tran   alt   pos   contain   space   

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-利用边框画三角形

标签:ace   lsp   htm   body   tran   alt   pos   contain   space   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
分享档案
周排行
mamicode.com排行更多图片
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!