Ctrl+/
IE11
F11
ESC
PgUp
PgDn
<!DOCTYPE html>
<html>
<head>
<title>颜色遮罩</title>
</head>
<body>
<svg x="0px" y="0px" width="500px" height="500px" viewbox="0 0 500 500">
<defs>
<filter id="blurry" x="-20%" y="-20%" height="140%" width="140%" primitiveUnits="userSpaceOnUse">
<feImage x="0" y="0" width="500" height="500" xlink:href="#squares" result="mySquares"/>
<feGaussianBlur stdDeviation="40" in="mySquares" result="blurSquares"/>
<feComponentTransfer in="blurSquares" result="morealpha">
<feFuncA type="linear" intercept=".8"/>
</feComponentTransfer>
<feComposite operator="in" in="morealpha" in2="SourceGraphic" result="clipBlur"/>
<feFlood x="10%" y="10%" width="80%" height="80%" flood-color="white" flood-opacity="0.6" result="whitesquare"/>
<feBlend mode="screen" in="clipBlur" in2="whitesquare" result="final"/>
</filter>
</defs>
<g id="squares">
<rect x="10" y="10" height="235" width="235" fill="red" />
<rect x="255" y="10" height="235" width="235" fill="green" />
<rect x="10" y="255" height="235" width="235" fill="blue" />
<rect x="255" y="255" height="235" width="235" fill="yellow" />
</g>
<rect filter="url(#blurry)" x="50" y="50" height="400" width="400"/>
</svg>
</body>
</html>
CSS代码...
JS代码...
xxxxxxxxxx