DIV+CSS圆角边框

简洁型css圆角:

 方法1:

简洁型css圆角矩形

 

code1:

 

复制代码
DIV+CSS圆角边框 < style  type ="text/css" >
DIV+CSS圆角边框.b1,.b2,.b3,.b4,.b1b,.b2b,.b3b,.b4b,.b
{display:block;overflow:hidden;}
DIV+CSS圆角边框.b1,.b2,.b3,.b1b,.b2b,.b3b
{height:1px;}
DIV+CSS圆角边框.b2,.b3,.b4,.b2b,.b3b,.b4b,.b
{border-left:1px solid #999;border-right:1px solid #999;}
DIV+CSS圆角边框.b1,.b1b
{margin:0 5px;background:#999;}
DIV+CSS圆角边框.b2,.b2b
{margin:0 3px;border-width:2px;}
DIV+CSS圆角边框.b3,.b3b
{margin:0 2px;}
DIV+CSS圆角边框.b4,.b4b
{height:2px;margin:0 1px;}
DIV+CSS圆角边框.d1
{background:#F7F8F9;}
DIV+CSS圆角边框.k 
{height:300px;}
DIV+CSS圆角边框
</ style >
DIV+CSS圆角边框
</ head >
DIV+CSS圆角边框
DIV+CSS圆角边框
< body >
DIV+CSS圆角边框
< div >
DIV+CSS圆角边框
< class ="b1" ></ b >< class ="b2 d1" ></ b >< class ="b3 d1" ></ b >< class ="b4 d1" ></ b >
DIV+CSS圆角边框
< div  class ="b d1 k" >
DIV+CSS圆角边框
< font  style ="font-size:26px;color:red; margin:0px 10px;" > 简洁型css圆角矩形 </ font >
DIV+CSS圆角边框
</ div >
DIV+CSS圆角边框
< class ="b4b d1" ></ b >< class ="b3b d1" ></ b >< class ="b2b d1" ></ b >< class ="b1b" ></ b >
DIV+CSS圆角边框
</ div >
复制代码

 

方法2:

 


无图片实现圆角框

 

code2:

 

复制代码
DIV+CSS圆角边框 < style  type ="text/css" >
DIV+CSS圆角边框div.RoundedCorner
{background:#9BD1FA; width:400px;}
DIV+CSS圆角边框b.rtop, b.rbottom
{display:block;background: #FFF}
DIV+CSS圆角边框b.rtop b, b.rbottom b
{display:block;height: 1px;overflow: hidden; background: #9BD1FA}
DIV+CSS圆角边框b.r1
{margin: 0 5px}
DIV+CSS圆角边框b.r2
{margin: 0 3px}
DIV+CSS圆角边框b.r3
{margin: 0 2px}
DIV+CSS圆角边框b.rtop b.r4, b.rbottom b.r4
{margin: 0 1px;height: 2px}
DIV+CSS圆角边框
</ style >
DIV+CSS圆角边框
< div  class ="RoundedCorner" >
DIV+CSS圆角边框
< class ="rtop" >< class ="r1" ></ b >< class ="r2" ></ b >< class ="r3" ></ b >< class ="r4" ></ b ></ b >
DIV+CSS圆角边框
< br > 无图片实现圆角框 < br >< br >
DIV+CSS圆角边框
< class ="rbottom" >< class ="r4" ></ b >< class ="r3" ></ b >< class ="r2" ></ b >< class ="r1" ></ b ></ b >
DIV+CSS圆角边框
</ div >
复制代码

 

3D圆角矩形:

 

3D圆角矩形

CODE:

 

复制代码
DIV+CSS圆角边框 < style  type ="text/css" >
DIV+CSS圆角边框.raised
{background:transparent;width:40%;}
DIV+CSS圆角边框.raised h1,.raised p
{margin:0 10px;}
DIV+CSS圆角边框.raised h1
{font-size:2em;color:#fff;}
DIV+CSS圆角边框.raised p
{padding-bottom:0.5em;}
DIV+CSS圆角边框.raised .b1,.raised .b2,.raised .b3,.raised .b4,.raised .b1b,.raised .b2b,.raised .b3b,.raised .b4b
{display:block;overflow:hidden;font-size:1px;}
DIV+CSS圆角边框.raised .b1,.raised .b2,.raised .b3,.raised .b1b,.raised .b2b,.raised .b3b
{height:1px;}
DIV+CSS圆角边框.raised .b2
{background:#ccc;border-left:1px solid #fff;border-right:1px solid #eee;}
DIV+CSS圆角边框.raised .b3
{background:#ccc;border-left:1px solid #fff;border-right:1px solid #ddd;}
DIV+CSS圆角边框.raised .b4
{background:#ccc;border-left:1px solid #fff;border-right:1px solid #aaa;}
DIV+CSS圆角边框.raised .b4b
{background:#ccc;border-left:1px solid #eee;border-right:1px solid #999;}
DIV+CSS圆角边框.raised .b3b
{background:#ccc;border-left:1px solid #ddd;border-right:1px solid #999;}
DIV+CSS圆角边框.raised .b2b
{background:#ccc;border-left:1px solid #aaa;border-right:1px solid #999;}
DIV+CSS圆角边框.raised .b1
{margin:0 5px;background:#fff;}
DIV+CSS圆角边框.raised .b2, .raised .b2b
{margin:0 3px;border-width:0 2px;}
DIV+CSS圆角边框.raised .b3, .raised .b3b
{margin:0 2px;}
DIV+CSS圆角边框.raised .b4, .raised .b4b
{height:2px; margin:0 1px;}
DIV+CSS圆角边框.raised .b1b
{margin:0 5px; background:#999;}
DIV+CSS圆角边框.raised .boxcontent
{display:block;background:#ccc;border-left:1px solid #fff;border-right:1px solid #999;}
DIV+CSS圆角边框
</ style >
DIV+CSS圆角边框
</ head >
DIV+CSS圆角边框
DIV+CSS圆角边框
< body >
DIV+CSS圆角边框
DIV+CSS圆角边框
< div  class ="raised" >
DIV+CSS圆角边框
< class ="b1" ></ b >< class ="b2" ></ b >< class ="b3" ></ b >< class ="b4" ></ b >
DIV+CSS圆角边框
< div  class ="boxcontent" >
DIV+CSS圆角边框
< h1 > 3D圆角矩形 </ h1 >
DIV+CSS圆角边框
</ div >
DIV+CSS圆角边框
< class ="b4b" ></ b >< class ="b3b" ></ b >< class ="b2b" ></ b >< class ="b1b" ></ b >
DIV+CSS圆角边框
</ div >
复制代码

 

 反向css圆角矩形:

 

反向css圆角矩形

CODE:

 

复制代码
DIV+CSS圆角边框 < style  type ="text/css" >
DIV+CSS圆角边框.serif 
{
DIV+CSS圆角边框  background
: transparent; width:40%;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.serif h1, .serif p 
{
DIV+CSS圆角边框  margin
:0 10px;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.serif h1 
{
DIV+CSS圆角边框  font-size
:2em; color:#fff;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.serif p 
{
DIV+CSS圆角边框  padding-bottom
:0.5em;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.serif .b1, .serif .b2, .serif .b3, .serif .b4 
{
DIV+CSS圆角边框  display
:block; 
DIV+CSS圆角边框  overflow
:hidden;
DIV+CSS圆角边框  font-size
:1px;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.serif .b1, .serif .b2, .serif .b3 
{
DIV+CSS圆角边框  height
:1px;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.serif .b2, .serif .b3 
{
DIV+CSS圆角边框  background
:#fc0; 
DIV+CSS圆角边框  border-left
:1px solid #fff; 
DIV+CSS圆角边框  border-right
:1px solid #fff;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.serif .b4 
{
DIV+CSS圆角边框  background
:#fc0; 
DIV+CSS圆角边框  border-left
:1px solid #fff; 
DIV+CSS圆角边框  border-right
:1px solid #fff;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.serif .b1 
{
DIV+CSS圆角边框  margin
:0; background:#fff;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.serif .b2 
{
DIV+CSS圆角边框  margin
:0 1px; 
DIV+CSS圆角边框  border-width
:0 2px;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.serif .b3 
{
DIV+CSS圆角边框  margin
:0 3px;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.serif .b4 
{
DIV+CSS圆角边框  height
:2px; 
DIV+CSS圆角边框  margin
:0 4px;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.serif .boxcontent 
{
DIV+CSS圆角边框  display
:block;  
DIV+CSS圆角边框  background
:#fc0; 
DIV+CSS圆角边框  border-left
:1px solid #fff; 
DIV+CSS圆角边框  border-right
:1px solid #fff; 
DIV+CSS圆角边框  margin
:0 5px;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框
DIV+CSS圆角边框
</ style >
DIV+CSS圆角边框
DIV+CSS圆角边框
< div  class ="serif" >
DIV+CSS圆角边框
< class ="b1" ></ b >< class ="b2" ></ b >< class ="b3" ></ b >< class ="b4" ></ b >
DIV+CSS圆角边框
< div  class ="boxcontent" >
DIV+CSS圆角边框
< h1 > 反向css圆角矩形 </ h1 >
DIV+CSS圆角边框
</ div >
DIV+CSS圆角边框
< class ="b4" ></ b >< class ="b3" ></ b >< class ="b2" ></ b >< class ="b1" ></ b >
DIV+CSS圆角边框
</ div >
复制代码

 

略带菱形的css圆角:

 

略带菱形的css圆角矩形

CODE:

 

复制代码
DIV+CSS圆角边框 < style  type ="text/css" >
DIV+CSS圆角边框.curved 
{
DIV+CSS圆角边框  background
:transparent; 
DIV+CSS圆角边框  width
:40%;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.curved h1, .curved p 
{
DIV+CSS圆角边框  margin
:0 10px;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.curved h1 
{
DIV+CSS圆角边框  font-size
:2em; 
DIV+CSS圆角边框  color
:#fff;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.curved p 
{
DIV+CSS圆角边框  padding-bottom
:0.5em;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.curved .b1, .curved .b2, .curved .b3, .curved .b4 
{
DIV+CSS圆角边框  display
:block; 
DIV+CSS圆角边框  overflow
:hidden; 
DIV+CSS圆角边框  height
:1px;
DIV+CSS圆角边框  font-size
:1px;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.curved .b2, .curved .b3, .curved .b4 
{
DIV+CSS圆角边框  background
:#e0cea3; 
DIV+CSS圆角边框  border-left
:1px solid #fff; 
DIV+CSS圆角边框  border-right
:1px solid #fff;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.curved .b1 
{
DIV+CSS圆角边框  margin
:0 4px; 
DIV+CSS圆角边框  background
:#fff;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.curved .b2 
{
DIV+CSS圆角边框  margin
:0 4px; 
DIV+CSS圆角边框  height
:2px;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.curved .b3 
{
DIV+CSS圆角边框  margin
:0 3px;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.curved .b4 
{
DIV+CSS圆角边框  margin
:0; 
DIV+CSS圆角边框  height
:1px; 
DIV+CSS圆角边框  border-width
:0 3px 0 3px;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.curved .boxcontent 
{
DIV+CSS圆角边框  display
:block; 
DIV+CSS圆角边框  background
:#e0cea3; 
DIV+CSS圆角边框  border
:0 solid #fff; 
DIV+CSS圆角边框  border-width
:0 1px;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框
</ style >
DIV+CSS圆角边框
DIV+CSS圆角边框
< div  class ="curved" >
DIV+CSS圆角边框
< class ="b1" ></ b >< class ="b2" ></ b >< class ="b3" ></ b >< class ="b4" ></ b >
DIV+CSS圆角边框
< div  class ="boxcontent" >
DIV+CSS圆角边框
< h1 > 略带菱形的css圆角矩形 </ h1 >
DIV+CSS圆角边框
</ div >
DIV+CSS圆角边框
< class ="b4" ></ b >< class ="b3" ></ b >< class ="b2" ></ b >< class ="b1" ></ b >
DIV+CSS圆角边框
</ div >
复制代码

 

特殊CSS圆角:

 

特殊css圆角矩形

CODE:

 

复制代码
DIV+CSS圆角边框 < style  type ="text/css" >
DIV+CSS圆角边框.pillar 
{
DIV+CSS圆角边框  background
:transparent; 
DIV+CSS圆角边框  width
:40%;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.pillar h1, .pillar p 
{
DIV+CSS圆角边框  margin
:0 10px;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.pillar h1 
{
DIV+CSS圆角边框  font-size
:2em; 
DIV+CSS圆角边框  color
:#fff;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.pillar p 
{
DIV+CSS圆角边框  padding-bottom
:0.5em;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.pillar .b1, .pillar .b2, .pillar .b3, .pillar .b4 
{
DIV+CSS圆角边框  display
:block; 
DIV+CSS圆角边框  overflow
:hidden;
DIV+CSS圆角边框  font-size
:1px;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.pillar .b1, .pillar .b2, .pillar .b4 
{
DIV+CSS圆角边框  height
:1px;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.pillar .b2, .pillar .b3 
{
DIV+CSS圆角边框  background
:#d66; 
DIV+CSS圆角边框  border-left
:1px solid #fff; 
DIV+CSS圆角边框  border-right
:1px solid #fff;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.pillar .b4 
{
DIV+CSS圆角边框  background
:#d66; 
DIV+CSS圆角边框  border-left
:4px solid #fff; 
DIV+CSS圆角边框  border-right
:4px solid #fff;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.pillar .b1 
{
DIV+CSS圆角边框  margin
:0 2px; 
DIV+CSS圆角边框  background
:#fff;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.pillar .b2 
{
DIV+CSS圆角边框  margin
:0 1px; 
DIV+CSS圆角边框  border-width
:0 1px;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.pillar .b3 
{
DIV+CSS圆角边框  height
:2px; 
DIV+CSS圆角边框  margin
:0;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.pillar .b4 
{
DIV+CSS圆角边框  margin
:0 2px;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框.pillar .boxcontent 
{
DIV+CSS圆角边框  display
:block; 
DIV+CSS圆角边框  background
:#d66; 
DIV+CSS圆角边框  border-left
:1px solid #fff; 
DIV+CSS圆角边框  border-right
:1px solid #fff; 
DIV+CSS圆角边框  margin
:0 5px;
DIV+CSS圆角边框  
}

DIV+CSS圆角边框
</ style >
DIV+CSS圆角边框
DIV+CSS圆角边框
< div  class ="pillar" >
DIV+CSS圆角边框
< class ="b1" ></ b >< class ="b2" ></ b >< class ="b3" ></ b >< class ="b2" ></ b >< class ="b4" ></ b >
DIV+CSS圆角边框
< div  class ="boxcontent" >
DIV+CSS圆角边框
< h1 > 特殊css圆角矩形 </ h1 >
DIV+CSS圆角边框
</ div >
DIV+CSS圆角边框
< class ="b4" ></ b >< class ="b2" ></ b >< class ="b3" ></ b >< class ="b2" ></ b >< class ="b1" ></ b >
DIV+CSS圆角边框
</ div >
复制代码
 
 
原文地址:http://www.cnblogs.com/mslove/archive/2009/03/24/1420703.html

你可能感兴趣的:(div+css)