SVGFEFloodElement: height 属性
SVGFEFloodElement
接口的只读属性 height
以 SVGAnimatedLength
的形式描述了 SVG 滤镜图元的垂直尺寸。
它反映了 <feFlood>
元素的 height
属性,该属性用 flood-color
和 flood-opacity
定义的颜色和不透明度填充 SVG 滤镜子区域。该属性是相对于滤镜区域高度的 <length>
或 <percentage>
。默认值为 100%
。属性值是以用户坐标系单位表示的长度。
值
一个 SVGAnimatedLength
对象。
示例
js
const feFlood = document.querySelector("feFlood");
const verticalSize = feFlood.height;
console.log(verticalSize.baseVal.value); // the `height` value
规范
规范 |
---|
滤镜效果模块第 1 级 # dom-svgfilterprimitivestandardattributes-height |
浏览器兼容性
加载中…
另见
SVGFEFloodElement.width
- SVG 滤镜教程
- CSS
<blend-mode>
数据类型 - CSS
mix-blend-mode
属性