2014-03-24 98 views
1

我想在CSS中创建背景雕刻。看看下面的图片。CSS3背景雕刻或半径问题

Image Carve!

我怎样才能在CSS3添加半径这样吗?任何人都可以帮忙

+0

检查这个问题:CSS3形状逆圈(http://stackoverflow.com/questions/10501488/css-3-shape-逆圆或切出圆) –

回答

0

在底部添加另一个格带有边框半径。

HTML:

<div class="content"> 
    <div class="bottom_border"></div> 
</div> 

CSS:

.content{ 
    background:#CCC; 
    height:100px; 
    width:100px; 
    position:relative; 
    overflow:hidden 
} 
.bottom_border { 
    position:absolute; 
    top:0; 
    bottom:0; 
    background:#FFF; 
    width:100px; 
    height:20px; 
    top:90px; 
    bottom:-10px; 
    border-radius: 50% 
}