SVGFETileElement: height 屬性
height 只讀屬性是 SVGFETileElement 介面的一部分,它描述了 SVG 濾鏡圖元的垂直尺寸,型別為 SVGAnimatedLength。
它反映了 <feTile> 元素的 height 屬性,該元素使用重複平鋪的輸入影像模式填充目標矩形。該屬性是一個 <length> 或 <percentage>,相對於濾鏡區域的高度。預設值為 100%。屬性值是以使用者座標系單位表示的長度。
值
一個 SVGAnimatedLength 物件。
示例
js
const feTile = document.querySelector("feTile");
const verticalSize = feTile.height;
console.log(verticalSize.baseVal.value); // the `height` value
規範
| 規範 |
|---|
| 濾鏡效果模組第 1 級 # dom-svgfilterprimitivestandardattributes-height |
瀏覽器相容性
載入中…