<feBlend>
Baseline
Widely available
This feature is well established and works across many devices and browser versions. Itâs been available across browsers since â¨2015å¹´7æâ©.
<feBlend> SVG 滤éåè¯æ ¹æ®ç¹å®çæ··åæ¨¡å¼å°ä¸¤ä¸ªå¯¹è±¡ç»åå¨ä¸èµ·ãè¿ç±»ä¼¼äºå¾åç¼è¾è½¯ä»¶ä¸æ··å两个å¾å±ã该模å¼ç± mode 屿§å®ä¹ã
使ç¨ä¸ä¸æ
屿§
DOM æ¥å£
该å
ç´ å®ç°äº SVGFEBlendElement æ¥å£ã
示ä¾
>SVG
html
<svg
width="200"
height="200"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<filter id="spotlight">
<feFlood
result="floodFill"
x="0"
y="0"
width="100%"
height="100%"
flood-color="green"
flood-opacity="1" />
<feBlend in="SourceGraphic" in2="floodFill" mode="multiply" />
</filter>
</defs>
<image
href="mdn_logo_only_color.png"
x="10%"
y="10%"
width="80%"
height="80%"
style="filter:url(#spotlight);" />
</svg>
ç»æ
è§è
| Specification |
|---|
| Filter Effects Module Level 1 > # feBlendElement > |
æµè§å¨å ¼å®¹æ§
åè§
- SVG 滤éåè¯å±æ§
<filter><animate><set><feColorMatrix><feComponentTransfer><feComposite><feConvolveMatrix><feDiffuseLighting><feDisplacementMap><feFlood><feGaussianBlur><feImage><feMerge><feMorphology><feOffset><feSpecularLighting><feTile><feTurbulence>- SVG æç¨ï¼æ»¤éææ