编辑下面的代码:【加编码】
<html> <body> <p><b>Note: </b>Internet Explorer and Safari do not support SVG filters yet!</p> <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <defs> <filter id="f1" x="0" y="0" width="200%" height="200%"> <feoffset result="offOut" in="SourceAlpha" dx="20" dy="20"></feoffset> <fegaussianblur result="blurOut" in="offOut" stddeviation="10"></fegaussianblur> <feblend in="SourceGraphic" in2="blurOut" mode="normal"></feblend> </filter> </defs> <rect width="90" height="90" stroke="green" stroke-width="3" fill="yellow" filter="url(#f1)"></rect> </svg> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂