欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!
    CSS3圆角
 
    使用CSS3border-radius属性,你可以给任何元素制作"圆角"。
 
    使用CSS3border-radius属性,你可以给任何元素制作"圆角"。
 
    以下为三个实例:
 
    1.指定背景颜色的元素圆角
 
    2.指定边框的元素圆角
 
    3.指定背景图片的元素圆角
 
    代码如下:
 
实例
#rcorners1 {
    border-radius: 25px;
    background: #8AC007;
    padding: 20px; 
    width: 200px;
    height: 150px; 
}
 
#rcorners2 {
    border-radius: 25px;
    border: 2px solid #8AC007;
    padding: 20px; 
    width: 200px;
    height: 150px; 
}
 
#rcorners3 {
    border-radius: 25px;
    background: url(paper.gif);
    background-position: left top;
    background-repeat: repeat;
    padding: 20px; 
    width: 200px;
    height: 150px; 
}

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