欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!

 

1.矩形

.rectangle {

width: 250px;

height: 150px;

background-color: #6DC75F;

}

2.三角形

.triangleUp {

border-left: 75px solid transparent;

border-right: 75px solid transparent;

border-bottom: 150px solid #6DC75F;

width: 0;

height: 0;

}

3.椭圆形

.oval {

width: 300px;

height: 150px;

background: #6DC75F;

-moz-border-radius: 150px / 75px;

-webkit-border-radius: 150px / 75px;

border-radius: 150px / 75px;

}

4.月牙形

.moon {

width: 150px;

height: 150px;

border-radius: 50%;

box-shadow: 15px 15px 0 0 green;

}

5.树叶

.leaf {

border-radius: 5px 300px 3px 300px;

background: #6DC75F;

width: 150px;

height: 150px;

}

如需转载,请注明文章出处和来源网址:http://www.divcss5.com/rumen/r42157.shtml