Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/41.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 将边框半径添加到形状/图像_Html_Css_Border_Pseudo Class - Fatal编程技术网

Html 将边框半径添加到形状/图像

Html 将边框半径添加到形状/图像,html,css,border,pseudo-class,Html,Css,Border,Pseudo Class,我想做到这一点。我不知道该怎么办,因为像border radius这样的工具无法实现这一点。顶部的曲线是图像,下面的曲线只是纯色。正如你所看到的,两边仍然很锋利。它可以有一个:之前或之后,但我不知道如何做它的形状 您必须为每个框添加一个帖子,然后为每个框更改margon 尝试像这样添加转换和包装块: .wrap { overflow: hidden; width: 990px; } .box1 { width:990px; height:300px; margin:0 au

我想做到这一点。我不知道该怎么办,因为像border radius这样的工具无法实现这一点。顶部的曲线是图像,下面的曲线只是纯色。正如你所看到的,两边仍然很锋利。它可以有一个:之前或之后,但我不知道如何做它的形状


您必须为每个框添加一个帖子,然后为每个框更改margon

尝试像这样添加转换和包装块:

.wrap {
  overflow: hidden;
  width: 990px;
}

.box1 {
  width:990px;
  height:300px;
  margin:0 auto;
  background: url('https://s9.postimg.org/vq8kj53an/Selection_025.png');
  border-radius: 0 0 40% 40%;
  transform: scalex(1.3);
}
Html:



您将img上传到哪里以供参考?我刚刚编辑了它,请用小提琴或代码笔分享你的代码,这可能会有所帮助。发生了什么,你期望发生什么,你尝试了什么?请查看代码笔
<div class="wrap">
  <div class="box1"></div>
</div>

<div class="box2"></div>
<div class="box3"></div>