CSS之盒子倒三角

时间:2014-05-09 12:40:06   收藏:0   阅读:295
bubuko.com,布布扣
 1 div{
 2         position: relative;
 3     }
 4     em ,span{
 5         border-style:solid dashed dashed dashed;
 6         border-color:transparent;
 7         border-width:3px;
 8         position: absolute;
 9         top:0;
10         left: 0;
11     }
12     em{border-top-color: #3c3c3c;top:1px;}
13     span{border-top-color: white;}
14 
15 <div>
16         <em></em>
17         <span></span>
18 </div>
bubuko.com,布布扣

 效果如图:--->bubuko.com,布布扣

CSS之盒子倒三角,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!