SVGFEColorMatrixElement:height 属性
SVGFEColorMatrixElement
接口的只读属性 height
使用 SVGAnimatedLength
类型描述了 SVG 滤镜图元的垂直尺寸。
它反映了 <feColorMatrix>
元素的 height
滤镜图元属性。<feColorMatrix>
滤镜会对 RGB 颜色和 Alpha 值执行矩阵变换。
该属性是相对于滤镜区域高度的 <length>
或 <percentage>
。默认值为 100%
。属性值是以用户坐标系统单位表示的长度。
值
一个 SVGAnimatedLength
对象。
示例
js
const feColorMatrix = document.querySelector("feColorMatrix");
const verticalSize = feColorMatrix.height;
console.log(verticalSize.baseVal.value); // the `height` value
规范
规范 |
---|
滤镜效果模块第 1 级 # dom-svgfilterprimitivestandardattributes-height |
浏览器兼容性
加载中…
另见
SVGFEColorMatrixElement.width
- CSS
<blend-mode>
数据类型 - CSS
mix-blend-mode
属性 - CSS 滤镜效果
- SVG
<filter>
元素,SVG中的 SVGfilter
属性 - 将 SVG 效果应用于 HTML 内容