---
title: feFlood
slug: Web/SVG/Element/feFlood
tags:
- SVG
- SVG滤镜
- 元素
- 需要兼容性表
- 需要示例
translation_of: Web/SVG/Element/feFlood
---
{{SVGRef}}
该滤镜用{{ SVGAttr("flood-color") }}元素定义的颜色和{{ SVGAttr("flood-opacity") }}元素定义的不透明度填充了滤镜子区域。
用法
{{svginfo}}
示例
属性
全局属性
- 核心属性 »
- 外观属性 »
- 滤镜属性 »
- {{ SVGAttr("class") }}
- {{ SVGAttr("style") }}
专有属性
- {{ SVGAttr("flood-color") }}
- {{ SVGAttr("flood-opacity") }}
DOM 接口
该元素实现了SVGFEFloodElement接口。
参见
- {{ SVGElement("filter") }}
- {{ SVGElement("animate") }}
- {{ SVGElement("animateColor") }}
- {{ SVGElement("set") }}
- {{ SVGElement("feBlend") }}
- {{ SVGElement("feColorMatrix") }}
- {{ SVGElement("feComponentTransfer") }}
- {{ SVGElement("feComposite") }}
- {{ SVGElement("feConvolveMatrix") }}
- {{ SVGElement("feDiffuseLighting") }}
- {{ SVGElement("feDisplacementMap") }}
- {{ SVGElement("feGaussianBlur") }}
- {{ SVGElement("feImage") }}
- {{ SVGElement("feMerge") }}
- {{ SVGElement("feMorphology") }}
- {{ SVGElement("feOffset") }}
- {{ SVGElement("feSpecularLighting") }}
- {{ SVGElement("feTile") }}
- {{ SVGElement("feTurbulence") }}
- SVG教程:滤镜效果