【发布时间】:2016-12-21 20:13:31
【问题描述】:
我尝试了很多椭圆形,两边都有切口,但不能做到,请
我需要两边都有切口的椭圆形代码..
下面是我的代码:-
.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;
}
【问题讨论】:
-
您可以使用百分比值作为边框半径而不是像素,请参阅Border-radius in percentage (%) and pixels (px)
标签: css css-shapes