我需要用 css 提供这个图像。必须在图像上放置一个图层。我无法得到完全相同的外观。有针对这个的解决方法吗?它也可以是 SVG 过滤器。
我试过了,但我做不到。
div {
width: 400px;
height: 800px;
background-image: url("https://i.stack.imgur.com/z5W7Q.jpg");
background-color: rgba(16, 24, 45, 0.8);
background-size: contain;
background-repeat: no-repeat;
background-blend-mode: darken;
}
<div></div>