SVGFEGaussianBlurElement: width 属性
width 只读属性,属于 SVGFEGaussianBlurElement 接口,以 SVGAnimatedLength 的形式描述 SVG 滤镜图元的水平尺寸。
它反映了 <feGaussianBlur> 元素的 width 属性,该属性用于模糊输入图像。该属性是一个 <length> 或相对于滤镜区域宽度的 <percentage>。默认值为 100%。属性值为用户坐标系单位的长度。
值
一个 SVGAnimatedLength 对象。
示例
js
const feGaussianBlur = document.querySelector("feGaussianBlur");
const horizontalSize = feGaussianBlur.width;
console.log(horizontalSize.baseVal.value); // the `width` value
规范
| 规范 |
|---|
| 滤镜效果模块第 1 级 # dom-svgfilterprimitivestandardattributes-width |
浏览器兼容性
加载中…
另见
SVGFEGaussianBlurElement.height- SVG 滤镜教程
- CSS
<blend-mode>数据类型 - CSS
blur()函数 - CSS 滤镜效果模块 - CSS
mix-blend-mode属性