BootWiki教程网
源代码:
点击运行
<!DOCTYPE html> <html> <body> <svg version="1.1" xmlns="http://www.w3.org/2000/svg"> <defs> <linearGradient id="grad1" x1="0%" x2="0%" y1="0%" y2="100%"> <stop offset="0%" style="stop-color:rgb(255,0,0);stop-opacity:1" /> <stop offset="100%" style="stop-color:rgb(255,255,0);stop-opacity:1" /> </linearGradient> </defs> <ellipse cx="200" cy="70" fill="url(#grad1)" rx="85" ry="55" /> </svg> </body> </html>
运行结果