值
一个 SVGAnimatedString
对象。
示例
访问 feTile
元素的 in
属性
html
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
<defs>
<filter id="tileFilter">
<!-- Tiles the SourceGraphic -->
<feTile in="SourceGraphic" />
</filter>
</defs>
<rect
x="20"
y="20"
width="100"
height="100"
fill="hotpink"
filter="url(#tileFilter)" />
</svg>
我们可以访问 feTile
元素的 in
属性。
js
// Select the feTile element
const tileElement = document.querySelector("feTile");
// Access the in1 property
console.log(tileElement.in1.baseVal); // Output: "SourceGraphic"
规范
规范 |
---|
滤镜效果模块第 1 级 # dom-svgfetileelement-in1 |
浏览器兼容性
加载中…