使用語境
| 分類 | 濾鏡圖元元素 |
|---|---|
| 允許內容 | 可包含任意數量、任意順序的下列元素<animate>, <animateTransform>, <discard>, <set> |
屬性
crossoriginfetchpriority實驗性保持長寬比xlink:href已棄用
DOM 介面
此元素實現了 SVGFEImageElement 介面。
示例
SVG
html
<svg
viewBox="0 0 200 200"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="200"
height="200">
<defs>
<filter id="image">
<feImage href="mdn_logo_only_color.png" />
</filter>
</defs>
<rect x="10%" y="10%" width="80%" height="80%" filter="url(#image)" />
</svg>
結果
規範
| 規範 |
|---|
| 濾鏡效果模組第 1 級 # feImageElement |
瀏覽器相容性
載入中…
另見
- SVG 濾鏡基元屬性
flood-color屬性flood-opacity屬性<filter><animate><animateTransform><set><feBlend><feColorMatrix><feComponentTransfer><feComposite><feConvolveMatrix><feDiffuseLighting><feDisplacementMap><feFlood><feGaussianBlur><feMerge><feMorphology><feOffset><feSpecularLighting><feTile><feTurbulence>fetchpriority屬性- SVG 教程:濾鏡效果