Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何在css3中制作此椭圆形_Html_Css - Fatal编程技术网

Html 如何在css3中制作此椭圆形

Html 如何在css3中制作此椭圆形,html,css,Html,Css,如何使图像中的这个椭圆像?使用伪元素 div{ 位置:相对位置; 宽度:556px; 身高:363px; 背景:url(https://i.stack.imgur.com/gHNBX.png); 背景:封面; 溢出:隐藏; } div::之后{ 内容:''; 位置:绝对位置; 顶部:165px; 左-45%; 宽度:180%; 身高:200%; 背景:rgba(255,0,0,0.7); 边界半径:50%; } 您能在我提供给您的相同图像中执行此操作吗? width: 100%; he

如何使图像中的这个椭圆像?

使用伪元素

div{
位置:相对位置;
宽度:556px;
身高:363px;
背景:url(https://i.stack.imgur.com/gHNBX.png);
背景:封面;
溢出:隐藏;
}
div::之后{
内容:'';
位置:绝对位置;
顶部:165px;
左-45%;
宽度:180%;
身高:200%;
背景:rgba(255,0,0,0.7);
边界半径:50%;
}

您能在我提供给您的相同图像中执行此操作吗?
width: 100%;
    height: 200px;
    background: #5e2424;
    -moz-border-radius: 100px / 50px;
    -webkit-border-radius: 100px / 178px;
    border-radius: 694px 208px 0px 0px;
    z-index: 100;
    position: relative;
    top: -199px;
}