太棒了,我刚刚意识到 CSS 中有一种叫做 flood-color
和 lighting-color
的东西。有谁知道什么是 flood-color
和 lighting-color
以及它们的作用?
这些到底是什么意思?:
The ‘flood-color’ property indicates what color to use to flood the current filter primitive subregion. The keyword currentColor and ICC colors can be specified in the same manner as within a specification for the ‘fill’ and ‘stroke’ properties.
The ‘lighting-color’ property defines the color of the light source for filter primitives ‘feDiffuseLighting’ and ‘feSpecularLighting’.
我们如何应用这些所谓的 SVG 效果?我试过将灯光颜色设置为红色,但似乎没有任何效果。
最佳答案
这些是 SVG 滤镜效果。
The ‘lighting-color’ property defines the color of the light source for filter primitives ‘feDiffuseLighting’ and ‘feSpecularLighting’.
http://www.w3.org/TR/SVG/filters.html#LightingColorProperty
The ‘flood-opacity’ property defines the opacity value to use across the entire filter primitive subregion.
关于html - 什么是 CSS 中的 flood-color 和 lighting-color 定义?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6982380/