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

div+css 画三角形

时间:2015-01-05 10:44:30      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:

 
 
 
 




<style type="text/css">  
.rightdirection  
{  
    width:0;height:0;  
    line-height:0;  
    border-width:20px;  
    border-style:solid;  
    border-color:transparent transparent transparent #A9DBF6;  
}  
.bottomdirection  
{  
    width:0;height:0;  
    line-height:0;  
    border-width:20px;  
    border-style:solid;  
    border-color: #A9DBF6 transparent transparent transparent;  
}  
.leftdirection  
{  
    width:0;height:0;  
    line-height:0;  
    border-width:20px;  
    border-style:solid;  
    border-color: transparent #A9DBF6  transparent transparent;  
}  
.topdirection  
{  
    width:0;height:0;  
    line-height:0;  
    border-width:20px;  
    border-style:solid;  
    border-color: transparent transparent #A9DBF6 transparent;  
}  
.topdirection1  
{  
    width:0;height:0;  
    line-height:0;  
    border-width:20px;  
    border-style:solid;  
    border-color: #A9DBF6   transparent transparent #A9DBF6 ;  
} 
</style>  
<div  class="rightdirection"></div>  
<p>  
<div  class="bottomdirection"></div>  
<p>  
<div  class="leftdirection"></div>  
<p>  
<div  class="topdirection"></div>  

<br/><br/><br/><br/>
<div  class="topdirection1"></div>  

  

div+css 画三角形

标签:

原文地址:http://www.cnblogs.com/hgj123/p/4202800.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!