javascript - 有没有办法为 div 创建波浪形边框半径,以及使用图像背景的最佳方法是什么
问题描述
我试图将其切片并将其作为图像背景
#section-2{
background-image: url(../images/section-2bg.png);
background-repeat: no-repeat;
/* Full height */
height: 100%;
/* Center and scale the image nicely */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
这是HTML
<section id="section-2" class="section-prod-comparison">
<div class="row">
<div class="col-lg-6">
<div class="col-lg-6"></div>
</div>
</div>
</section>
有没有办法使用 CSS 制作它?或者我只需要使用图像作为背景,那么如何使图像背景与设计一样并且响应良好
谢谢你
解决方案
将 SVG(具有这些路径和形状)放入 div 容器中。您可以使用此站点生成 wave svg 或制作/查找其他站点。
推荐阅读
- discord.js - 为什么这个机器人在“user.hasPermission()”上失败了?
- python - 在管理页面上添加表时 Django 出错
- excel - 合并来自已关闭工作簿的数据 adodb 方法
- unity3d - Sing app bundle with lost keystore 如何更新?
- scala - 如何在 Scala 中分解我自己的序列 ADT?
- python - RepeatVector 层与 Concatenate 层相同吗?
- c++ - 将对象的值保存在向量中,并将指针保存在地图中。这个对吗?
- javascript - 为什么向按钮添加类仅在第二次单击后才有效?
- video - ffmpeg 出错,错误为设置`-profile:v main` 初始化输出流 0:0
- javascript - 无法在jQuery中(两者)之前和之后插入元素