【发布时间】:2019-01-27 10:51:35
【问题描述】:
我正在尝试添加一个具有透明背景颜色的部分,背景图像也具有形状分隔符。
我做了什么。
我使用 elementor 插件作为波形分割器,但它并没有按照我喜欢的方式工作。
elementor 生成的代码。
<div class="elementor-shape elementor-shape-bottom" data-negative="false">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none">
<path class="elementor-shape-fill" d="M421.9,6.5c22.6-2.5,51.5,0.4,75.5,5.3c23.6,4.9,70.9,23.5,100.5,35.7c75.8,32.2,133.7,44.5,192.6,49.7
c23.6,2.1,48.7,3.5,103.4-2.5c54.7-6,106.2-25.6,106.2-25.6V0H0v30.3c0,0,72,32.6,158.4,30.5c39.2-0.7,92.8-6.7,134-22.4
c21.2-8.1,52.2-18.2,79.7-24.2C399.3,7.9,411.6,7.5,421.9,6.5z"></path>
</svg> </div>
我需要什么。
我需要形状分隔符应该与部分背景完全融合,以便它可以具有单一外观。
并且形状分隔线的颜色必须像剖面背景。
【问题讨论】:
-
你已经尝试过什么?把相关代码贴在这里看this information on asking a good question。
-
提供到目前为止您尝试过的代码,这使得提供与您的代码相关的解决方案变得更加容易
-
Wavy shape with css的可能重复
-
我用过wordpress
-
@Gerard 不一样
标签: html css svg adobe-illustrator