SVGFEBlendElement: width 屬性

Baseline 已廣泛支援

此特性已相當成熟,可在許多裝置和瀏覽器版本上使用。自 ⁨2015 年 7 月⁩以來,各瀏覽器均已提供此特性。

SVGFEBlendElement 介面的只讀屬性 width 描述了 SVG 濾鏡圖元的水平尺寸,其型別為 SVGAnimatedLength

它反映了 <feBlend> 元素的 width 濾鏡圖元屬性。該屬性是一個 <length> 或一個相對於濾鏡區域寬度的 <percentage>。預設值為 100%。屬性值是以使用者座標系單位表示的長度。

<feBlend> SVG 濾鏡使用常用的成像軟體 混合模式將兩個輸入影像混合在一起。

一個 SVGAnimatedLength 物件。

示例

js
const feBlend = document.querySelector("feBlend");
const horizontalSize = feBlend.width;
console.log(horizontalSize.baseVal.value); // the `width` value

規範

規範
濾鏡效果模組第 1 級
# dom-svgfilterprimitivestandardattributes-width

瀏覽器相容性

另見