BootWiki教程网
源代码:
点击运行
<!DOCTYPE html> <html> <body> <svg version="1.1" xmlns="http://www.w3.org/2000/svg"> <defs> <linearGradient gradientUnits="userSpaceOnUse" id="MyGradient" x1="100" x2="300" y1="0" y2="0"> <stop offset="0" style="stop-color:#000000" /> <stop offset=".33" style="stop-color:#ffffff" /> <stop offset=".67" style="stop-color:#ffff00" /> <stop offset="1" style="stop-color:#808080" /> </linearGradient> <filter id="normal"> <feBlend in="SourceGraphic" in2="BackgroundImage" mode="normal" /> </filter> <filter id="multiply"> <feBlend in="SourceGraphic" in2="BackgroundImage" mode="multiply" /> </filter> <filter id="screen"> <feBlend in="SourceGraphic" in2="BackgroundImage" mode="screen" /> </filter> <filter id="darken"> <feBlend in="SourceGraphic" in2="BackgroundImage" mode="darken" /> </filter> <filter id="lighten"> <feBlend in="SourceGraphic" in2="BackgroundImage" mode="lighten" /> </filter> </defs> <g style="enable-background:new"> <rect height="450" style="fill:url(#MyGradient)" width="300" x="40" y="20" /> <g style="font-size:75;fill:#888888;fill-opacity:.6"> <text filter="url(#normal)" x="50" y="90">Normal</text> <text filter="url(#multiply)" x="50" y="180">Multiply</text> <text filter="url(#screen)" x="50" y="270">Screen</text> <text filter="url(#darken)" x="50" y="360">Darken</text> <text filter="url(#lighten)" x="50" y="450">Lighten</text> </g> </g> </svg> </body> </html>
运行结果