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屬性