css - 将多层背景与单独的蒙版结合起来
问题描述
我有几个图像的背景,我想给它们动态颜色,所以我的计划是堆叠多种颜色而不是图像,并给每种颜色一个蒙版。我就是这样尝试的:
前:
background:
url(/static/img/2x2black.svg) repeat-x top,
url(/static/img/2x2black.svg) repeat-x bottom,
var(--color-ground);
后:
background:
var(--color-onground),
var(--color-onground),
var(--color-ground);
mask:
url(/static/img/2x2black.svg) repeat-x top,
url(/static/img/2x2black.svg) repeat-x bottom,
none;
但这不起作用。
解决方案
推荐阅读
- css - 如何在 Wordpress Porto Theme css 中添加 rel="preload",找不到 css 链接
- vba - VBA根据文件名中的字符串移动文件
- python - 如何在函数的空字典中添加数据?
- java - 为什么蓝牙麦克风在后台模式下停止录音?
- apache-kafka - 卡夫卡没有发布对主题的文件更改
- javascript - TypeError:无法读取 DiscountButton.apply_discount 处未定义的属性“taxes_by_id”(Odoo 14)
- jquery - JQuery 自动完成不显示国家/地区数组
- javascript - javascript 函数在按钮单击时不起作用。但是无需单击按钮即可工作
- python - 绘制均值和置信区间 - matplotlib
- vb.net - 间隔小于 1 秒的 WQL 查询