Anu*_*eep 11 css css3 css-shapes
我试了很多椭圆形的形状,两边都切了但是不能这样做 
我需要椭圆形的代码,两边都有切边..
这是我的代码如下: -
.demo{
width: 100%;
height: 600px;
background: white;
-moz-border-radius: 100px / 50px;
-webkit-border-radius: 100px / 178px;
border-radius: 694px / 208px;
z-index: 100;
position: relative;
}
Run Code Online (Sandbox Code Playgroud)
The*_*pha 18
这个可以吗 ?
HTML
<div id="oval_parent">
<div id="oval"></div>
</div>
Run Code Online (Sandbox Code Playgroud)
CSS
#oval_parent{
background:black;
width:200px;
height:120px;
overflow:hidden;
}
#oval{
width: 220px;
height: 100px;
margin:10px 0 0 -10px;
background: white;
-moz-border-radius: 100px / 50px;
-webkit-border-radius: 100px / 50px;
border-radius: 100px / 50px;
}
Run Code Online (Sandbox Code Playgroud)
演示.