cuốn sách gpt4 ai đã làm

CSS3/SVG 分隔符

In lại Tác giả: Walker 123 更新时间:2023-11-28 19:25:32 27 4
mua khóa gpt4 Nike

我正在尝试使用 svg 或纯 css3 制作 header 分隔符,如下所示: preview from design

在 header 中我有标准的 bootstrap 4 轮播



Border radis 工作正常,但我在底部标题中需要很少的圆形分隔符。它可能用 css3 制作吗?或者需要 svg 形状?

câu trả lời hay nhất

我希望这就是您要问的:在下一个示例中,我将使用 clip-path 来剪辑 header 。请注意,我使用的路径有一个 1/1 和 clipPathUnits="objectBoundingBox" 的边界框。

MDN quote: This value indicates that all coordinates inside the element are relative to the bounding box of the element the clipping path is applied to. It means that the origin of the coordinate system is the top left corner of the object bounding box and the width and height of the object bounding box are considered to have a length of 1 unit value.

#tiêu đề {
phần đệm: 0;
background-image: url(../../../s.cdpn.io/222579/castell.jpg);
kích thước nền: bìa;
height: 50vh;
-webkit-clip-path: url(#clip);
clip-path: url(#clip);
}








关于CSS3/SVG 分隔符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56272762/

27 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress