答案 0 :(得分:0)
您可以使用SVG格式使用它。首先,您可以使用Figma或Adobe Illustrator或任何您喜欢的形状进行绘制。您将该图像以SVG格式导入到代码中。在这种格式下,您可以编辑一行代码来操纵该形状的颜色。 (SVG是作为代码导入的图像)。希望对您有所帮助。
答案 1 :(得分:0)
<div class="a1"></div>
<style type="text/css">
.a1 {
height: 136px;
background: red;
position: relative;
width:100%;
}
.a1:after {
content: '';
position: absolute;
top: 99px;
right: -64px;
border-top: 110px solid white;
border-left: 850px solid white;
width: 0;
background: #fff;
border-radius: 100px;
}
.a1:before {
content: '';
position: absolute;
top: 116px;
left: 0px;
width: 329px;
height: 91px;
background: #f00;
border-radius: 0px 0px 328px 0px;
}
</style>
[1]: https://i.stack.imgur.com/tN360.jpg