SVGFESpecularLightingElement: width 屬性
width 只讀屬性,屬於 SVGFESpecularLightingElement 介面,以 SVGAnimatedLength 的形式描述 SVG 濾鏡圖元的水平尺寸。
它反映了 <feSpecularLighting> 元素的 width 屬性,該元素使用 alpha 通道作為凹凸貼圖來照亮源圖形。該屬性是相對於濾鏡區域寬度的 <length> 或 <percentage>。預設值為 100%。屬性值是以使用者座標系統單位表示的長度。
值
一個 SVGAnimatedLength 物件。
示例
js
const feSpecularLighting = document.querySelector("feSpecularLighting");
const horizontalSize = feSpecularLighting.width;
console.log(horizontalSize.baseVal.value); // the `width` value
規範
| 規範 |
|---|
| 濾鏡效果模組第 1 級 # dom-svgfilterprimitivestandardattributes-width |
瀏覽器相容性
載入中…