空气主题

您是不希望灰色区域侵入背景图像吗?

如果是这样,您将使用上面的相同代码,但unset clip-path 属性。

html .background-container {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: url(https://d11a6trkgmumsb.cloudfront.net/original/3X/8/3/8352b68….jpeg);
    background-size: cover;
    clip-path: unset;

这实际上和您的图片搭配起来效果很好!

8 个赞