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